mirror of
https://github.com/jkstack/libagent.git
synced 2025-12-24 12:11:57 +08:00
修改log
This commit is contained in:
2
app.go
2
app.go
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user