mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-11 22:30:47 +01: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() {
|
||||
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