Fix error logging

This commit is contained in:
Chocobozzz 2018-03-26 15:54:13 +02:00
parent 0dcf9a14be
commit d5b7d9110d
No known key found for this signature in database
GPG key ID: 583A612D890159BE
24 changed files with 57 additions and 41 deletions

View file

@ -16,7 +16,7 @@ function retryTransactionWrapper <T> (
.catch(err => callback(err))
})
.catch(err => {
logger.error(options.errorMessage, err)
logger.error(options.errorMessage, { err })
throw err
})
}