aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.go b/main.go
index a634e34..aac7741 100644
--- a/main.go
+++ b/main.go
@@ -90,7 +90,8 @@ func main() {
if len(config.LogFile) < 1 {
logger = log.New(os.Stdout, "", log.LstdFlags)
} else {
- lf, err := os.Open(config.LogFile)
+ lf, err := os.OpenFile(config.LogFile,
+ os.O_WRONLY|os.O_CREATE|os.O_APPEND, 0644)
if err != nil {
errExit(err)
}