add debug output
This commit is contained in:
parent
467b9d93ac
commit
86c835f02b
1 changed files with 4 additions and 0 deletions
4
main.go
4
main.go
|
@ -104,6 +104,10 @@ func main() {
|
|||
fmt.Printf("Stop %v - user: %d - login: %d - errors: %d - rem: %d - duplicate: %d\n\r", count.GetTime(), count.GetUser(), count.GetLog(), count.GetErr(), count.GetRem(), count.GetDup())
|
||||
log.Printf("Stop %v - user: %d - login: %d - errors: %d - rem: %d - duplicate: %d\n\r", count.GetTime(), count.GetUser(), count.GetLog(), count.GetErr(), count.GetRem(), count.GetDup())
|
||||
|
||||
if opts.Debug {
|
||||
fmt.Printf("Time: \n\tConsumer: max: %.5f - min: %.5f - med: %.5f\n\tRemover: max: %.5f - min: %.5f - med: %.5f\n\tProducer: %.5f\n", count.GetMaxConsumer(), count.GetMinConsumer(), count.GetConsumerTime(), count.GetMaxRemover(), count.GetMinRemover(), count.GetRemoverTime(), count.GetProducerTime())
|
||||
}
|
||||
|
||||
if opts.Influxdb != "" {
|
||||
writeStats(start)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue