]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix transaction retryer error log
authorChocobozzz <me@florianbigard.com>
Wed, 27 Jun 2018 07:45:06 +0000 (09:45 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 27 Jun 2018 07:45:06 +0000 (09:45 +0200)
server/helpers/database-utils.ts

index ededa79016fb3e3be8c79274eb390d5788805895..11304cafb684988f4c7ebedd88f7d05d0ef62290 100644 (file)
@@ -35,7 +35,7 @@ function retryTransactionWrapper <T> (
         .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
   })
 }