adjust logging

This commit is contained in:
Chris Lu
2020-09-20 15:38:59 -07:00
parent f498c71199
commit d013d09a9b
7 changed files with 11 additions and 17 deletions

View File

@@ -153,10 +153,7 @@ func (s3opt *S3Options) startS3Server() bool {
}
}
glog.V(0).Infof("s3 server sends metrics to %s every %d seconds", metricsAddress, metricsIntervalSec)
if metricsAddress != "" && metricsIntervalSec > 0 {
go stats_collect.LoopPushingMetric("s3", stats_collect.SourceName(uint32(*s3opt.port)), stats_collect.S3Gather, metricsAddress, metricsIntervalSec)
}
go stats_collect.LoopPushingMetric("s3", stats_collect.SourceName(uint32(*s3opt.port)), stats_collect.S3Gather, metricsAddress, metricsIntervalSec)
router := mux.NewRouter().SkipClean(true)