diff options
author | Chocobozzz <me@florianbigard.com> | 2022-07-18 11:55:13 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-07-18 11:55:13 +0200 |
commit | 1cc9774668827c1255e4cd0775cb781c7f73051c (patch) | |
tree | 6ee5099e069e35ca100e74ac1de54ba94113a9b3 /server/controllers/api | |
parent | 42b40636991b97fe818007fab19091764fc5db73 (diff) | |
download | PeerTube-1cc9774668827c1255e4cd0775cb781c7f73051c.tar.gz PeerTube-1cc9774668827c1255e4cd0775cb781c7f73051c.tar.zst PeerTube-1cc9774668827c1255e4cd0775cb781c7f73051c.zip |
Fix incorrect error logs
Diffstat (limited to 'server/controllers/api')
-rw-r--r-- | server/controllers/api/server/follows.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/server/follows.ts b/server/controllers/api/server/follows.ts index 9557810b5..37e8d88f7 100644 --- a/server/controllers/api/server/follows.ts +++ b/server/controllers/api/server/follows.ts | |||
@@ -168,7 +168,7 @@ async function removeFollowing (req: express.Request, res: express.Response) { | |||
168 | 168 | ||
169 | // Async, could be long | 169 | // Async, could be long |
170 | removeRedundanciesOfServer(server.id) | 170 | removeRedundanciesOfServer(server.id) |
171 | .catch(err => logger.error('Cannot remove redundancy of %s.', server.host, err)) | 171 | .catch(err => logger.error('Cannot remove redundancy of %s.', server.host, { err })) |
172 | 172 | ||
173 | await follow.destroy({ transaction: t }) | 173 | await follow.destroy({ transaction: t }) |
174 | }) | 174 | }) |