summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Olheiser <john.olheiser@gmail.com>2021-05-10 21:48:23 +0200
committerGitHub <noreply@github.com>2021-05-10 21:48:23 +0200
commit2f65c6b2f03d4b8908422e63788d8775b5d64a8f (patch)
treeea44970c8481f40db30a945f04e2ccfc03db8a03
parentdon't record error when request a non-exist user (#15819) (diff)
downloadforgejo-2f65c6b2f03d4b8908422e63788d8775b5d64a8f.tar.xz
forgejo-2f65c6b2f03d4b8908422e63788d8775b5d64a8f.zip
Add err to log (#15813)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
-rw-r--r--modules/doctor/dbversion.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/doctor/dbversion.go b/modules/doctor/dbversion.go
index f82cf72093..c5cac3bf91 100644
--- a/modules/doctor/dbversion.go
+++ b/modules/doctor/dbversion.go
@@ -23,7 +23,7 @@ func checkDBVersion(logger log.Logger, autofix bool) error {
err = models.NewEngine(context.Background(), migrations.Migrate)
if err != nil {
- logger.Critical("Error: %v during migration")
+ logger.Critical("Error: %v during migration", err)
}
return err
}