aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/tracker.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/tracker.ts')
-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 })