summaryrefslogtreecommitdiffstats
path: root/pkg/app
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2018-08-14 18:02:27 +1000
committerJesse Duffield <jessedduffield@gmail.com>2018-08-14 18:02:27 +1000
commitb32173b0c724102f7817f313d07dd257e4299909 (patch)
tree202399562e86dd19dde93f94b3c27d69713e2d83 /pkg/app
parent1c750fdb400eca46ed6b94c72ff6e3f5d8ce365f (diff)
output to development.log in append mode
Diffstat (limited to 'pkg/app')
-rw-r--r--pkg/app/app.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/app/app.go b/pkg/app/app.go
index d5a8f11c9..d558ed250 100644
--- a/pkg/app/app.go
+++ b/pkg/app/app.go
@@ -28,11 +28,11 @@ func newLogger(config config.AppConfigurer) *logrus.Logger {
log.Out = ioutil.Discard
return log
}
- file, err := os.OpenFile("development.log", os.O_CREATE|os.O_WRONLY, 0666)
+ file, err := os.OpenFile("development.log", os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666)
if err != nil {
panic("unable to log to file") // TODO: don't panic (also, remove this call to the `panic` function)
}
- log.Out = file
+ log.SetOutput(file)
return log
}