mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
Merge pull request #2067 from hedgedoc/add-db-error-to-log
This commit is contained in:
commit
f553df3fa1
2 changed files with 3 additions and 2 deletions
4
app.js
4
app.js
|
@ -291,9 +291,9 @@ function syncAndListen () {
|
||||||
process.exit(1)
|
process.exit(1)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}).catch(() => {
|
}).catch((dbError) => {
|
||||||
if (currentDBTry < maxDBTries) {
|
if (currentDBTry < maxDBTries) {
|
||||||
logger.warn(`Database cannot be reached. Try ${currentDBTry} of ${maxDBTries}.`)
|
logger.warn(`Database cannot be reached. Try ${currentDBTry} of ${maxDBTries}. (${dbError})`)
|
||||||
currentDBTry++
|
currentDBTry++
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
syncAndListen()
|
syncAndListen()
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
### Enhancements
|
### Enhancements
|
||||||
- Libravatar avatars render as ident-icons when no avatar image was uploaded to Libravatar or Gravatar
|
- Libravatar avatars render as ident-icons when no avatar image was uploaded to Libravatar or Gravatar
|
||||||
|
- Add database connection error message to log output
|
||||||
|
|
||||||
## <i class="fa fa-tag"></i> 1.9.2 <i class="fa fa-calendar-o"></i> 2021-12-03
|
## <i class="fa fa-tag"></i> 1.9.2 <i class="fa fa-calendar-o"></i> 2021-12-03
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue