diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-07-07 18:26:12 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-07-07 18:26:12 +0200 |
commit | ad0997adfb9e1e3b1ff54338d7558cf7b18440ea (patch) | |
tree | 78ef53699d260e194bbcda7eccb645a14070679a /server/lib/friends.ts | |
parent | 709756b8e183f67ef9bf8f7bc149af4736260350 (diff) | |
download | PeerTube-ad0997adfb9e1e3b1ff54338d7558cf7b18440ea.tar.gz PeerTube-ad0997adfb9e1e3b1ff54338d7558cf7b18440ea.tar.zst PeerTube-ad0997adfb9e1e3b1ff54338d7558cf7b18440ea.zip |
Fix error logging
Diffstat (limited to 'server/lib/friends.ts')
-rw-r--r-- | server/lib/friends.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/lib/friends.ts b/server/lib/friends.ts index c24839cb6..3487addbe 100644 --- a/server/lib/friends.ts +++ b/server/lib/friends.ts | |||
@@ -180,7 +180,7 @@ function quitFriends () { | |||
180 | }, { concurrency: REQUESTS_IN_PARALLEL }) | 180 | }, { concurrency: REQUESTS_IN_PARALLEL }) |
181 | .then(() => pods) | 181 | .then(() => pods) |
182 | .catch(err => { | 182 | .catch(err => { |
183 | logger.error('Some errors while quitting friends.', { err: err }) | 183 | logger.error('Some errors while quitting friends.', err) |
184 | // Don't stop the process | 184 | // Don't stop the process |
185 | }) | 185 | }) |
186 | }) | 186 | }) |
@@ -215,7 +215,7 @@ function sendOwnedVideosToPod (podId: number) { | |||
215 | return createRequest(options) | 215 | return createRequest(options) |
216 | }) | 216 | }) |
217 | .catch(err => { | 217 | .catch(err => { |
218 | logger.error('Cannot convert video to remote.', { error: err }) | 218 | logger.error('Cannot convert video to remote.', err) |
219 | // Don't break the process | 219 | // Don't break the process |
220 | return undefined | 220 | return undefined |
221 | }) | 221 | }) |
@@ -344,7 +344,7 @@ function makeRequestsToWinningPods (cert: string, podsList: PodInstance[]) { | |||
344 | sendOwnedVideosToPod(podCreated.id) | 344 | sendOwnedVideosToPod(podCreated.id) |
345 | }) | 345 | }) |
346 | .catch(err => { | 346 | .catch(err => { |
347 | logger.error('Cannot add friend %s pod.', pod.host, { error: err }) | 347 | logger.error('Cannot add friend %s pod.', pod.host, err) |
348 | }) | 348 | }) |
349 | } else { | 349 | } else { |
350 | logger.error('Status not 200 for %s pod.', pod.host) | 350 | logger.error('Status not 200 for %s pod.', pod.host) |