From 312f77469eab408ee40aba55c19be6c3227f35b0 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Sun, 6 Jan 2019 22:34:29 +0000 Subject: [PATCH] watchd: disable some noise in the proxy-found log output --- proxywatchd.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/proxywatchd.py b/proxywatchd.py index 72e701a..f2a6c35 100644 --- a/proxywatchd.py +++ b/proxywatchd.py @@ -85,7 +85,9 @@ class WorkerJob(): self.failcount = 0 self.success_count = self.success_count + 1 self.total_duration += int(duration*1000) - _log('%s://%s; c: %s; d: %.2f sec(s); tor: %s; srv: %s; recv: %s' % (proto, self.proxy, match, duration, tor, srv, recv), 'xxxxx') + cstats = "" if match == 'unknown' else ' c: %s;'%match + torstats = "" if len(config.torhosts)==1 else ' tor: %s;'%tor + _log('%s://%s;%s d: %.2f sec(s);%s; srv: %s; recv: %s' % (proto, self.proxy, cstats, duration, torstats, srv, recv), 'xxxxx') except KeyboardInterrupt as e: raise e except: