commit db2251345d16a530cf27fe951b235719515c2b88 Author: David Fifield david@bamsoftware.com Date: Sun Jul 16 15:02:57 2017 -0700
Close the log file in server. --- server/server.go | 1 + 1 file changed, 1 insertion(+)
diff --git a/server/server.go b/server/server.go index 7229e06..3e29a0b 100644 --- a/server/server.go +++ b/server/server.go @@ -239,6 +239,7 @@ func main() { if err != nil { log.Fatalf("can't open log file: %s", err) } + defer f.Close() log.SetOutput(f) }