aboutsummaryrefslogtreecommitdiff
path: root/internal/cmd/backup.go
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-03-22 14:11:52 +0800
committerGitHub <noreply@github.com>2020-03-22 14:11:52 +0800
commit82e511ddb1d1e98ebe6b1931766b0835fc066883 (patch)
treef35a2856d11a9e6458d0f33e6cec04d0091db7db /internal/cmd/backup.go
parent5843038a0812cc133c1895b7410aeda7153e8708 (diff)
cmd: init logging before `SetEngine` (#6001)
Diffstat (limited to 'internal/cmd/backup.go')
-rw-r--r--internal/cmd/backup.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/cmd/backup.go b/internal/cmd/backup.go
index b9d9dd95..5478979e 100644
--- a/internal/cmd/backup.go
+++ b/internal/cmd/backup.go
@@ -51,6 +51,7 @@ func runBackup(c *cli.Context) error {
if err != nil {
return errors.Wrap(err, "init configuration")
}
+ conf.InitLogging(true)
if err = db.SetEngine(); err != nil {
return errors.Wrap(err, "set engine")