Skip to content

Commit

Permalink
put extra stat logging behind Extras log option
Browse files Browse the repository at this point in the history
  • Loading branch information
Miles Crabill committed Aug 9, 2016
1 parent a6e7e9a commit 4aba57d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions events/datadog_statistics.go
Expand Up @@ -23,9 +23,9 @@ func (e *DatadogStatistics) NewStatistic(name string, value float64, tags []stri
}
return nil
}

log.Info("Reporting statistic %s: %d, tags: %v", name, value, tags)

if log.Extras() {
log.Info("DatadogStatistics: reporting %s: %f, tags: %v", name, value, tags)
}
g, err := e.godspeed()
if err != nil {
return err
Expand Down

0 comments on commit 4aba57d

Please sign in to comment.