more logging for report

This commit is contained in:
Gyu-Ho Lee 2016-03-17 22:22:01 -07:00
parent 7b8c204c7e
commit 3980317c9d
1 changed files with 7 additions and 0 deletions

View File

@ -16,6 +16,7 @@ package main
import ( import (
"fmt" "fmt"
"log"
"math" "math"
"sort" "sort"
"strings" "strings"
@ -83,8 +84,14 @@ func wrapReport(f func()) <-chan struct{} {
} }
func (r *report) finalize() { func (r *report) finalize() {
log.Println("finalize has started")
st := time.Now() st := time.Now()
i := 0
for res := range r.results { for res := range r.results {
if i%100 == 0 {
log.Printf("processing finalize at %d", i)
}
i++
if res.errStr != "" { if res.errStr != "" {
r.errorDist[res.errStr]++ r.errorDist[res.errStr]++
} else { } else {