aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-07-11 14:29:57 +0200
committerChocobozzz <me@florianbigard.com>2022-07-11 14:37:58 +0200
commitf614635d6a1c88bac6e62115c1942bfcaac5576e (patch)
tree7d5313d2a03ec64e1094325c3a8c8a1f7a27a81c
parent6504b3bfd9477ddd4d70c44a3ee1a9a0537a16c9 (diff)
downloadPeerTube-f614635d6a1c88bac6e62115c1942bfcaac5576e.tar.gz
PeerTube-f614635d6a1c88bac6e62115c1942bfcaac5576e.tar.zst
PeerTube-f614635d6a1c88bac6e62115c1942bfcaac5576e.zip
Fix unknown infohash setting
-rw-r--r--server/controllers/tracker.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/controllers/tracker.ts b/server/controllers/tracker.ts
index 23bcb971e..19a8b2bc9 100644
--- a/server/controllers/tracker.ts
+++ b/server/controllers/tracker.ts
@@ -74,9 +74,10 @@ if (CONFIG.TRACKER.ENABLED !== false) {
74 }) 74 })
75 75
76 trackerServer.on('warning', function (err) { 76 trackerServer.on('warning', function (err) {
77 if (CONFIG.LOG.LOG_TRACKER_UNKNOWN_INFOHASH) { 77 const message = err.message || ''
78 const message = err.message || '' 78
79 if (message.includes('Unknown infoHash')) return 79 if (CONFIG.LOG.LOG_TRACKER_UNKNOWN_INFOHASH === false && message.includes('Unknown infoHash')) {
80 return
80 } 81 }
81 82
82 logger.warn('Warning in tracker.', { err }) 83 logger.warn('Warning in tracker.', { err })