Clean up additional logging and always print basic agent config

This commit is contained in:
Cameron Sparr
2015-09-29 14:06:49 -07:00
parent f5d1aaf7d9
commit b01c28ebc6
2 changed files with 7 additions and 10 deletions

View File

@@ -132,12 +132,9 @@ func main() {
log.Printf("Starting Telegraf (version %s)\n", Version)
log.Printf("Loaded outputs: %s", strings.Join(outputs, " "))
log.Printf("Loaded plugins: %s", strings.Join(plugins, " "))
if ag.Debug {
log.Printf("Debug: enabled")
log.Printf("Agent Config: Interval:%s, Debug:%#v, Hostname:%#v, "+
"Precision:%#v, UTC: %#v\n",
ag.Interval, ag.Debug, ag.Hostname, ag.Precision, ag.UTC)
}
log.Printf("Agent Config: Interval:%s, Debug:%#v, Hostname:%#v, "+
"Precision:%#v, UTC: %#v\n",
ag.Interval, ag.Debug, ag.Hostname, ag.Precision, ag.UTC)
log.Printf("Tags enabled: %s", config.ListTags())
if *fPidfile != "" {