From: Chocobozzz Date: Wed, 27 Jun 2018 07:45:06 +0000 (+0200) Subject: Fix transaction retryer error log X-Git-Tag: v1.0.0-beta.10.pre.1~130 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1e11f67be4d1c1ed93b298798ffdc81a2bd50a4e;p=oweals%2Fpeertube.git Fix transaction retryer error log --- diff --git a/server/helpers/database-utils.ts b/server/helpers/database-utils.ts index ededa7901..11304cafb 100644 --- a/server/helpers/database-utils.ts +++ b/server/helpers/database-utils.ts @@ -35,7 +35,7 @@ function retryTransactionWrapper ( .catch(err => callback(err)) }) .catch(err => { - logger.error('Cannot execute %s with many retries.', functionToRetry.toString(), { err }) + logger.error(`Cannot execute ${functionToRetry.name} with many retries.`, { err }) throw err }) }