Fix unknown infohash setting
This commit is contained in:
parent
6504b3bfd9
commit
f614635d6a
|
@ -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 })
|
||||
|
|
Loading…
Reference in New Issue