diff options
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/database-utils.ts | 2 | ||||
-rw-r--r-- | server/helpers/peertube-crypto.ts | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/server/helpers/database-utils.ts b/server/helpers/database-utils.ts index f761cfb89..e174dc3e9 100644 --- a/server/helpers/database-utils.ts +++ b/server/helpers/database-utils.ts | |||
@@ -17,7 +17,7 @@ function retryTransactionWrapper (functionToRetry: (... args) => Promise<any>, o | |||
17 | ) | 17 | ) |
18 | .catch(err => { | 18 | .catch(err => { |
19 | // Do not throw the error, continue the process | 19 | // Do not throw the error, continue the process |
20 | logger.error(options.errorMessage, { error: err }) | 20 | logger.error(options.errorMessage, err) |
21 | }) | 21 | }) |
22 | } | 22 | } |
23 | 23 | ||
diff --git a/server/helpers/peertube-crypto.ts b/server/helpers/peertube-crypto.ts index 0c73e8539..89aef99c4 100644 --- a/server/helpers/peertube-crypto.ts +++ b/server/helpers/peertube-crypto.ts | |||
@@ -30,7 +30,7 @@ function checkSignature (publicKey: string, data: string, hexSignature: string) | |||
30 | try { | 30 | try { |
31 | dataString = JSON.stringify(data) | 31 | dataString = JSON.stringify(data) |
32 | } catch (err) { | 32 | } catch (err) { |
33 | logger.error('Cannot check signature.', { error: err }) | 33 | logger.error('Cannot check signature.', err) |
34 | return false | 34 | return false |
35 | } | 35 | } |
36 | } | 36 | } |
@@ -51,7 +51,7 @@ function sign (data: string|Object) { | |||
51 | try { | 51 | try { |
52 | dataString = JSON.stringify(data) | 52 | dataString = JSON.stringify(data) |
53 | } catch (err) { | 53 | } catch (err) { |
54 | logger.error('Cannot sign data.', { error: err }) | 54 | logger.error('Cannot sign data.', err) |
55 | return Promise.resolve('') | 55 | return Promise.resolve('') |
56 | } | 56 | } |
57 | } | 57 | } |