diff options
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/oauth/oauth-token.ts | 2 | ||||
-rw-r--r-- | server/models/pod/pod.ts | 6 | ||||
-rw-r--r-- | server/models/video/video.ts | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/server/models/oauth/oauth-token.ts b/server/models/oauth/oauth-token.ts index 8c6883465..a0a13aab7 100644 --- a/server/models/oauth/oauth-token.ts +++ b/server/models/oauth/oauth-token.ts | |||
@@ -114,7 +114,7 @@ getByRefreshTokenAndPopulateClient = function (refreshToken: string) { | |||
114 | 114 | ||
115 | return tokenInfos | 115 | return tokenInfos |
116 | }).catch(function (err) { | 116 | }).catch(function (err) { |
117 | logger.info('getRefreshToken error.', { error: err }) | 117 | logger.info('getRefreshToken error.', err) |
118 | }) | 118 | }) |
119 | } | 119 | } |
120 | 120 | ||
diff --git a/server/models/pod/pod.ts b/server/models/pod/pod.ts index 9209380fc..62d9e3c6c 100644 --- a/server/models/pod/pod.ts +++ b/server/models/pod/pod.ts | |||
@@ -216,7 +216,7 @@ updatePodsScore = function (goodPods: number[], badPods: number[]) { | |||
216 | 216 | ||
217 | if (goodPods.length !== 0) { | 217 | if (goodPods.length !== 0) { |
218 | incrementScores(goodPods, PODS_SCORE.BONUS).catch(err => { | 218 | incrementScores(goodPods, PODS_SCORE.BONUS).catch(err => { |
219 | logger.error('Cannot increment scores of good pods.', { error: err }) | 219 | logger.error('Cannot increment scores of good pods.', err) |
220 | }) | 220 | }) |
221 | } | 221 | } |
222 | 222 | ||
@@ -224,7 +224,7 @@ updatePodsScore = function (goodPods: number[], badPods: number[]) { | |||
224 | incrementScores(badPods, PODS_SCORE.MALUS) | 224 | incrementScores(badPods, PODS_SCORE.MALUS) |
225 | .then(() => removeBadPods()) | 225 | .then(() => removeBadPods()) |
226 | .catch(err => { | 226 | .catch(err => { |
227 | if (err) logger.error('Cannot decrement scores of bad pods.', { error: err }) | 227 | if (err) logger.error('Cannot decrement scores of bad pods.', err) |
228 | }) | 228 | }) |
229 | } | 229 | } |
230 | } | 230 | } |
@@ -246,6 +246,6 @@ function removeBadPods () { | |||
246 | } | 246 | } |
247 | }) | 247 | }) |
248 | .catch(err => { | 248 | .catch(err => { |
249 | logger.error('Cannot remove bad pods.', { error: err }) | 249 | logger.error('Cannot remove bad pods.', err) |
250 | }) | 250 | }) |
251 | } | 251 | } |
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 3d71e8d9e..47d3cad1d 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -553,7 +553,7 @@ transcodeVideofile = function (this: VideoInstance) { | |||
553 | .catch(err => { | 553 | .catch(err => { |
554 | // Autodesctruction... | 554 | // Autodesctruction... |
555 | video.destroy().asCallback(function (err) { | 555 | video.destroy().asCallback(function (err) { |
556 | if (err) logger.error('Cannot destruct video after transcoding failure.', { error: err }) | 556 | if (err) logger.error('Cannot destruct video after transcoding failure.', err) |
557 | }) | 557 | }) |
558 | 558 | ||
559 | return rej(err) | 559 | return rej(err) |