mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 01:08:31 +02:00
fix(log): fix scrambled config log output
This commit is contained in:
@@ -409,5 +409,6 @@ func (state *state) printRoutesByProvider(lenLongestName int) {
|
|||||||
|
|
||||||
func (state *state) printState() {
|
func (state *state) printState() {
|
||||||
state.tmpLog.Info().Msg("active config:")
|
state.tmpLog.Info().Msg("active config:")
|
||||||
yaml.NewEncoder(state.tmpLog).Encode(state.Config)
|
yamlRepr, _ := yaml.Marshal(state.Config)
|
||||||
|
state.tmpLog.Info().Msgf("%s", yamlRepr) // prevent copying when casting to string
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user