Fix error log when updating redundancy
This commit is contained in:
parent
ab87af1155
commit
a18bb55e9b
|
@ -31,7 +31,7 @@ async function updateRedundancy (req: express.Request, res: express.Response) {
|
||||||
|
|
||||||
// Async, could be long
|
// Async, could be long
|
||||||
removeRedundancyOf(server.id)
|
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)
|
return res.sendStatus(204)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue