From 06e2d03a9c264b711713126706aebb2dfeea2cdd Mon Sep 17 00:00:00 2001 From: Alan Penner Date: Sun, 26 Jan 2014 20:33:08 -0800 Subject: [PATCH] add log of IP in authorize --- mining/service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mining/service.py b/mining/service.py index c65cfd2..6cb2efb 100644 --- a/mining/service.py +++ b/mining/service.py @@ -90,6 +90,8 @@ class MiningService(GenericService): Interfaces.worker_manager.worker_log['authorized'][worker_name] = (0, 0, False, session['difficulty'], is_ext_diff, Interfaces.timestamper.time()) return True else: + ip = self.connection_ref()._get_ip() + log.info("Failed worker authorization: IP %s", str(ip)) if worker_name in session['authorized']: del session['authorized'][worker_name] if worker_name in Interfaces.worker_manager.worker_log['authorized']: