mirror of
https://github.com/project-zot/zot.git
synced 2025-01-27 23:01:43 -05:00
log: fix appending to logs
This commit is contained in:
parent
d4366d501b
commit
d294f9bc76
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue