aboutsummaryrefslogtreecommitdiff
path: root/routers
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-02-28 12:42:16 -0500
committerUnknwon <u@gogs.io>2017-02-28 12:42:16 -0500
commitdd649eb4cc8dc6f1edc7168607bddb9dd6dde0be (patch)
treea87fc48478060fd061ad05599141871bdd4befed /routers
parentd43f5f17fd1e07230ade010116acabdc2dde27b6 (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.go2
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