mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 10:18:38 +00:00
Fix bug related to log
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user