From fc0b1b008d8a1a8c7309ec0cd5f8d8a0c8f93a5e Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Sun, 13 Jul 2014 21:27:20 -0400 Subject: [PATCH] Flush log IO before exiting --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 127b39c..30ca9b1 100644 --- a/main.go +++ b/main.go @@ -29,6 +29,8 @@ func init() { } func main() { + defer glog.Flush() + flag.Parse() glog.Info("parsed flags")