From 1e11f67be4d1c1ed93b298798ffdc81a2bd50a4e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 27 Jun 2018 09:45:06 +0200 Subject: Fix transaction retryer error log --- server/helpers/database-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/helpers') 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 }) } -- cgit v1.2.3