From: Chocobozzz Date: Tue, 26 Nov 2019 16:50:37 +0000 (+0100) Subject: Fix error log when updating redundancy X-Git-Tag: v2.1.0-rc.1~305 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a18bb55e9b72664dff4043785842d6d406dd15a3;p=oweals%2Fpeertube.git Fix error log when updating redundancy --- diff --git a/server/controllers/api/server/redundancy.ts b/server/controllers/api/server/redundancy.ts index f8109070d..4ea6164a3 100644 --- a/server/controllers/api/server/redundancy.ts +++ b/server/controllers/api/server/redundancy.ts @@ -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) }