syntax fixes
This commit is contained in:
parent
8e748aaa90
commit
1ce33aa89a
13 changed files with 45 additions and 43 deletions
|
|
@ -19,7 +19,7 @@ func Stderr() {
|
|||
log = stdlog.New(os.Stderr, "", stdlog.LstdFlags)
|
||||
}
|
||||
|
||||
func InitLogger(cfg core.Config) {
|
||||
func InitLogger(cfg *core.Config) {
|
||||
debug = cfg.Debug
|
||||
if cfg.LogFile == "-" {
|
||||
return
|
||||
|
|
@ -30,7 +30,7 @@ func InitLogger(cfg core.Config) {
|
|||
stdlog.Fatal(err)
|
||||
return
|
||||
}
|
||||
f, err := os.OpenFile(logfile, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0600)
|
||||
f, err := os.OpenFile(logfile, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0o600)
|
||||
if err != nil {
|
||||
stdlog.Fatal(err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue