aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-07-13 10:59:55 +0200
committerChocobozzz <me@florianbigard.com>2022-07-13 10:59:55 +0200
commite0f49a19ea08921bffd597babfd8c7208c777d92 (patch)
tree1fa6d35cd951e69d564612da434a86e6056e0189
parent39d117a47d313637cf3ded4c6fa915aa9fd469ee (diff)
downloadPeerTube-e0f49a19ea08921bffd597babfd8c7208c777d92.tar.gz
PeerTube-e0f49a19ea08921bffd597babfd8c7208c777d92.tar.zst
PeerTube-e0f49a19ea08921bffd597babfd8c7208c777d92.zip
Reduce db retry log on failure
-rw-r--r--server/helpers/database-utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/database-utils.ts b/server/helpers/database-utils.ts
index aedcc5e64..627381086 100644
--- a/server/helpers/database-utils.ts
+++ b/server/helpers/database-utils.ts
@@ -45,7 +45,7 @@ function retryTransactionWrapper <T> (
45 .catch(err => callback(err)) 45 .catch(err => callback(err))
46 }) 46 })
47 .catch(err => { 47 .catch(err => {
48 logger.error(`Cannot execute ${functionToRetry.name} with many retries.`, { err }) 48 logger.warn(`Cannot execute ${functionToRetry.name} with many retries.`, { err })
49 throw err 49 throw err
50 }) 50 })
51} 51}