mirror of
https://git.freesoftwareextremist.com/bloat
synced 2024-12-22 17:10:42 +00: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