mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2024-12-23 03:43:38 +02:00
Fix logfile
This commit is contained in:
parent
a57a142328
commit
c41f9272f9
1 changed files with 2 additions and 1 deletions
3
main.go
3
main.go
|
@ -90,7 +90,8 @@ func main() {
|
|||
if len(config.LogFile) < 1 {
|
||||
logger = log.New(os.Stdout, "", log.LstdFlags)
|
||||
} else {
|
||||
lf, err := os.Open(config.LogFile)
|
||||
lf, err := os.OpenFile(config.LogFile,
|
||||
os.O_WRONLY|os.O_CREATE|os.O_APPEND, 0644)
|
||||
if err != nil {
|
||||
errExit(err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue