From 9be12a3c7ec7218a6487c4470a443b7c9fbeb5cd Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Fri, 19 Feb 2016 19:59:31 -0500 Subject: [PATCH] Update logging format to include source file/line --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index 30b1cc6..45b06cc 100644 --- a/main.go +++ b/main.go @@ -50,6 +50,9 @@ func init() { if !static_dir.IsDir() { log.Fatal(dir_err_str) } + + // Setup the logging flags to be printed + log.SetFlags(log.Ldate | log.Ltime | log.Lshortfile) } func rootHandler(w http.ResponseWriter, r *http.Request) {