diff options
author | Unknwon <u@gogs.io> | 2017-02-28 12:42:16 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-02-28 12:42:16 -0500 |
commit | dd649eb4cc8dc6f1edc7168607bddb9dd6dde0be (patch) | |
tree | a87fc48478060fd061ad05599141871bdd4befed /routers | |
parent | d43f5f17fd1e07230ade010116acabdc2dde27b6 (diff) |
admin: fix template error
Also a try to display key-value pairs in table.
Diffstat (limited to 'routers')
-rw-r--r-- | routers/admin/admin.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/admin/admin.go b/routers/admin/admin.go index 4ac0bd67..3433e6f7 100644 --- a/routers/admin/admin.go +++ b/routers/admin/admin.go @@ -240,7 +240,7 @@ func Config(ctx *context.Context) { Mode: strings.Title(setting.LogModes[i]), } - result, _ := json.Marshal(setting.LogConfigs[i]) + result, _ := json.MarshalIndent(setting.LogConfigs[i], "", " ") loggers[i].Config = string(result) } ctx.Data["Loggers"] = loggers |