mirror of
https://github.com/go-gitea/gitea.git
synced 2024-08-26 21:54:19 -04:00
display as error (#7724)
This commit is contained in:
parent
76408d50fb
commit
7d9a13035e
@ -54,7 +54,7 @@ func initDBEngine() (err error) {
|
|||||||
} else if i == setting.DBConnectRetries-1 {
|
} else if i == setting.DBConnectRetries-1 {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
log.Debug("ORM engine initialization attempt #%d/%d failed. Error: %v", i+1, setting.DBConnectRetries, err)
|
log.Error("ORM engine initialization attempt #%d/%d failed. Error: %v", i+1, setting.DBConnectRetries, err)
|
||||||
log.Info("Backing off for %d seconds", int64(setting.DBConnectBackoff/time.Second))
|
log.Info("Backing off for %d seconds", int64(setting.DBConnectBackoff/time.Second))
|
||||||
time.Sleep(setting.DBConnectBackoff)
|
time.Sleep(setting.DBConnectBackoff)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user