Log file
This commit is contained in:
parent
cd8177f0c7
commit
7662127aff
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
|
@ -39,7 +39,7 @@ func init() {
|
|||
}
|
||||
|
||||
path = filepath.Join(path, "logs.txt")
|
||||
f, err := os.OpenFile(path, os.O_CREATE|os.O_APPEND, os.ModePerm)
|
||||
f, err := os.OpenFile(path, os.O_CREATE|os.O_WRONLY, os.ModePerm)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue