]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Reduce db retry log on failure
authorChocobozzz <me@florianbigard.com>
Wed, 13 Jul 2022 08:59:55 +0000 (10:59 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 13 Jul 2022 08:59:55 +0000 (10:59 +0200)
server/helpers/database-utils.ts

index aedcc5e6409d89861462352f8dfc92f151d3ef95..62738108607f650af0ca63b25de506f4fb4de03f 100644 (file)
@@ -45,7 +45,7 @@ function retryTransactionWrapper <T> (
         .catch(err => callback(err))
   })
   .catch(err => {
-    logger.error(`Cannot execute ${functionToRetry.name} with many retries.`, { err })
+    logger.warn(`Cannot execute ${functionToRetry.name} with many retries.`, { err })
     throw err
   })
 }