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

Unified Diff: perf/go/logserver/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 | « perf/go/ingest/main.go ('k') | perf/go/perf_migratedb/main.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: perf/go/logserver/main.go
diff --git a/perf/go/logserver/main.go b/perf/go/logserver/main.go
index 683a1682a1313d7243e5679953eb434cf923f57d..8d0c1aaa998e28b24ecb72a61ba7ff656c366039 100644
--- a/perf/go/logserver/main.go
+++ b/perf/go/logserver/main.go
@@ -109,6 +109,7 @@ func serveFile(w http.ResponseWriter, r *http.Request, fs http.FileSystem, name
func main() {
flag.Parse()
+ defer glog.Flush()
if err := os.MkdirAll(*dir, 0777); err != nil {
glog.Fatalf("Failed to create dir for log files: %s", err)
« no previous file with comments | « perf/go/ingest/main.go ('k') | perf/go/perf_migratedb/main.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698