修改log

This commit is contained in:
lwch
2022-09-02 17:39:21 +08:00
parent a6fb417ddd
commit eda652ee5d

2
app.go
View File

@@ -108,7 +108,7 @@ func (app *app) initLogging() {
cfg.WriteStdout = false
}
if !cfg.WriteStdout && !cfg.WriteFile {
fmt.Printf("[WARN]no log target set, default to stdout")
fmt.Printf("[WARN]no log target set, default to stdout\n")
cfg.WriteStdout = true
}
cfg.Dir = app.a.Configure().Log.Dir