diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-06 13:41:58 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-06 13:41:58 -0400 |
commit | 6a16866f4e0908e62c5e5b30e3dc0ef8e4cb0819 (patch) | |
tree | 80cfbd61c2bd872aa5750660861c10ef6cae5c22 /update.go | |
parent | 794cd27db3de55cce4c5d3716bf9e60fadaa86bc (diff) | |
download | gitea-6a16866f4e0908e62c5e5b30e3dc0ef8e4cb0819.tar.gz gitea-6a16866f4e0908e62c5e5b30e3dc0ef8e4cb0819.zip |
Fix bug related to log
Diffstat (limited to 'update.go')
-rw-r--r-- | update.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -32,7 +32,8 @@ gogs serv provide access auth for repositories`, func newUpdateLogger(execDir string) { logPath := execDir + "/log/update.log" os.MkdirAll(path.Dir(logPath), os.ModePerm) - f, err := os.Open(logPath) + + f, err := os.OpenFile(logPath, os.O_WRONLY|os.O_APPEND|os.O_CREATE, os.ModePerm) if err != nil { qlog.Fatal(err) } |