mirror of
https://github.com/project-zot/zot.git
synced 2026-06-15 20:07:55 +08:00
log: fix appending to logs
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ func NewLogger(config *Config) zerolog.Logger {
|
||||
if config.Log.Output == "" {
|
||||
log = zerolog.New(os.Stdout)
|
||||
} else {
|
||||
file, err := os.OpenFile(config.Log.Output, os.O_WRONLY|os.O_CREATE, 0600)
|
||||
file, err := os.OpenFile(config.Log.Output, os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0600)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user