Merge pull request #1723 from hjr265/master
cli: override log output from d2cli only
This commit is contained in:
commit
3edfaa4fe1
2 changed files with 5 additions and 1 deletions
|
|
@ -1358,3 +1358,7 @@ func AnimatePNGs(ms *xmain.State, pngs [][]byte, animIntervalMs int) ([]byte, er
|
||||||
|
|
||||||
return xgif.AnimatePNGs(pngs, animIntervalMs)
|
return xgif.AnimatePNGs(pngs, animIntervalMs)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
ctxlog.Init()
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ import (
|
||||||
|
|
||||||
var _default = slog.Make(sloghuman.Sink(os.Stderr)).Named("default")
|
var _default = slog.Make(sloghuman.Sink(os.Stderr)).Named("default")
|
||||||
|
|
||||||
func init() {
|
func Init() {
|
||||||
stdlib := slog.Stdlib(context.Background(), _default, slog.LevelInfo)
|
stdlib := slog.Stdlib(context.Background(), _default, slog.LevelInfo)
|
||||||
log.SetOutput(stdlib.Writer())
|
log.SetOutput(stdlib.Writer())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue