Add id-card compliance
This commit is contained in:
parent
fbcb8b5ff2
commit
86dfca60c1
6 changed files with 67 additions and 210 deletions
|
|
@ -5,8 +5,11 @@ const logger = require('./logger')
|
|||
const pgp = Pgp({
|
||||
pgNative: true,
|
||||
error: (err, e) => {
|
||||
if (e.cn) return logger.error('Database not reachable.')
|
||||
if (e.query) return
|
||||
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