Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(585)

Unified Diff: monitoring/go/prober/main.go

Issue 659943006: Do not forget to call `defer glog.Flush()` in our applications (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: revert titletool changes Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « monitoring/go/grains/grains.go ('k') | perf/go/ingest/main.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: monitoring/go/prober/main.go
diff --git a/monitoring/go/prober/main.go b/monitoring/go/prober/main.go
index 1add8210e37e0a60b8024c7ba7e9f6d1e35bcfb6..76b4af1f1ae216323a638b1dea2724dffacc31fe 100644
--- a/monitoring/go/prober/main.go
+++ b/monitoring/go/prober/main.go
@@ -16,11 +16,8 @@ import (
"strings"
"time"
- "github.com/rcrowley/go-metrics"
-)
-
-import (
"github.com/golang/glog"
+ "github.com/rcrowley/go-metrics"
)
var (
@@ -213,6 +210,7 @@ func monitorIssueTracker() {
func main() {
flag.Parse()
+ defer glog.Flush()
go monitorIssueTracker()
glog.Infoln("Looking for Carbon server.")
addr, err := net.ResolveTCPAddr("tcp", *carbon)
« no previous file with comments | « monitoring/go/grains/grains.go ('k') | perf/go/ingest/main.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698