diff --git a/src/config.go b/src/config.go index acc1c66..841b054 100644 --- a/src/config.go +++ b/src/config.go @@ -166,8 +166,8 @@ type ObservabilityConfig struct { SlowResponseThreshold Duration `toml:"slow-response-threshold" default:"500ms"` } -func (config *Config) DebugJSON() string { - result, err := json.MarshalIndent(config, "", " ") +func (config *Config) TOML() string { + result, err := toml.Marshal(config) if err != nil { panic(err) } diff --git a/src/main.go b/src/main.go index 2ae5472..3692623 100644 --- a/src/main.go +++ b/src/main.go @@ -269,7 +269,7 @@ func Main() { } if *printConfig { - fmt.Println(config.DebugJSON()) + fmt.Println(config.TOML()) return }