Printing config as multi log line entity, makes it readable and grepable on startup

This commit is contained in:
Jan Mußler
2020-10-21 08:33:31 +02:00
parent c6c4c4cc8a
commit 668ef51d9f
6 changed files with 510 additions and 232 deletions
+1 -1
View File
@@ -199,7 +199,7 @@ type Config struct {
// MustMarshal marshals the config or panics
func (c Config) MustMarshal() string {
b, err := json.MarshalIndent(c, "", "\t")
b, err := json.MarshalIndent(c, "", " ")
if err != nil {
panic(err)
}