]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/videos/blacklist.ts
Fix error logging
[github/Chocobozzz/PeerTube.git] / server / controllers / api / videos / blacklist.ts
index 7eee460d4f1e087488e9b7a334b32c42884b40ed..8112b59b804464e6eb0fc3653e81d8d6f5876fcc 100644 (file)
@@ -69,7 +69,7 @@ async function removeVideoFromBlacklistController (req: express.Request, res: ex
 
     return res.sendStatus(204)
   } catch (err) {
-    logger.error('Some error while removing video %s from blacklist.', res.locals.video.uuid, err)
+    logger.error('Some error while removing video %s from blacklist.', res.locals.video.uuid, { err })
     throw err
   }
 }