fix zero-conf stuff
This commit is contained in:
parent
ee3fc3a8f0
commit
0bf4a14383
3 changed files with 29 additions and 16 deletions
|
|
@ -4,8 +4,13 @@ const logger = require('./logger')
|
|||
|
||||
const pgp = Pgp({
|
||||
pgNative: true,
|
||||
error: (_, e) => {
|
||||
error: (err, e) => {
|
||||
if (e.cn) logger.error('Database not reachable.')
|
||||
if (e.query) {
|
||||
logger.error(e.query)
|
||||
logger.error(e.params)
|
||||
}
|
||||
logger.error(err)
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue