Skip to content

Commit

Permalink
日志文件自动翻新
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyiming748 committed Jan 9, 2024
1 parent 5fe7980 commit 9ada2bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ func setLog() {
}
}
file := "Process.log"
logf, err := os.OpenFile(file, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0770)
logf, err := os.OpenFile(file, os.O_RDWR|os.O_CREATE, 0770)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 9ada2bd

Please sign in to comment.