Fix error log when updating redundancy

This commit is contained in:
Chocobozzz 2019-11-26 17:50:37 +01:00
parent ab87af1155
commit a18bb55e9b
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ async function updateRedundancy (req: express.Request, res: express.Response) {
// Async, could be long
removeRedundancyOf(server.id)
.catch(err => logger.error('Cannot remove redundancy of %s.', server.host, err))
.catch(err => logger.error('Cannot remove redundancy of %s.', server.host, { err }))
return res.sendStatus(204)
}