watchd: optional debug output

This commit is contained in:
rofl0r
2019-01-06 22:44:18 +00:00
parent 312f77469e
commit e51dbe113b
3 changed files with 6 additions and 0 deletions

View File

@@ -42,6 +42,9 @@ class WorkerJob():
sock.send('%s\n' % random.choice(['NICK', 'USER', 'JOIN', 'MODE', 'PART', 'INVITE', 'KNOCK', 'WHOIS', 'WHO', 'NOTICE', 'PRIVMSG', 'PING', 'QUIT']))
return sock, proto, duration, torhost, srv, 0
except rocksock.RocksockException as e:
if config.watchd_debug:
_log("proxy failed: %s://%s: %s"%(proto, self.proxy, e.get_errormessage()), 'debug')
et = e.get_errortype()
err = e.get_error()
fp = e.get_failedproxy()