1
0
Fork 0

Fix unknown infohash setting

This commit is contained in:
Chocobozzz 2022-07-11 14:29:57 +02:00
parent 6504b3bfd9
commit f614635d6a
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -74,9 +74,10 @@ if (CONFIG.TRACKER.ENABLED !== false) {
})
trackerServer.on('warning', function (err) {
if (CONFIG.LOG.LOG_TRACKER_UNKNOWN_INFOHASH) {
const message = err.message || ''
if (message.includes('Unknown infoHash')) return
if (CONFIG.LOG.LOG_TRACKER_UNKNOWN_INFOHASH === false && message.includes('Unknown infoHash')) {
return
}
logger.warn('Warning in tracker.', { err })