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/request/abstract-request-scheduler.ts | |
parent | 709756b8e183f67ef9bf8f7bc149af4736260350 (diff) | |
download | PeerTube-ad0997adfb9e1e3b1ff54338d7558cf7b18440ea.tar.gz PeerTube-ad0997adfb9e1e3b1ff54338d7558cf7b18440ea.tar.zst PeerTube-ad0997adfb9e1e3b1ff54338d7558cf7b18440ea.zip |
Fix error logging
Diffstat (limited to 'server/lib/request/abstract-request-scheduler.ts')
-rw-r--r-- | server/lib/request/abstract-request-scheduler.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/request/abstract-request-scheduler.ts b/server/lib/request/abstract-request-scheduler.ts index 128fc5b28..0a9ff65d5 100644 --- a/server/lib/request/abstract-request-scheduler.ts +++ b/server/lib/request/abstract-request-scheduler.ts | |||
@@ -84,7 +84,7 @@ abstract class AbstractRequestScheduler <T> { | |||
84 | } | 84 | } |
85 | }) | 85 | }) |
86 | .catch(err => { | 86 | .catch(err => { |
87 | logger.error('Error sending secure request to %s pod.', toPod.host, { error: err }) | 87 | logger.error('Error sending secure request to %s pod.', toPod.host, err) |
88 | 88 | ||
89 | throw err | 89 | throw err |
90 | }) | 90 | }) |
@@ -124,7 +124,7 @@ abstract class AbstractRequestScheduler <T> { | |||
124 | }) | 124 | }) |
125 | .catch(err => { | 125 | .catch(err => { |
126 | badPods.push(requestToMake.toPod.id) | 126 | badPods.push(requestToMake.toPod.id) |
127 | logger.info('Cannot make request to %s.', toPod.host, { error: err }) | 127 | logger.info('Cannot make request to %s.', toPod.host, err) |
128 | }) | 128 | }) |
129 | }, { concurrency: REQUESTS_IN_PARALLEL }).then(() => ({ goodPods, badPods })) | 129 | }, { concurrency: REQUESTS_IN_PARALLEL }).then(() => ({ goodPods, badPods })) |
130 | }) | 130 | }) |