From 8971618982780aa261bf3657fcaecd75bfeff9a9 Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Sat, 2 Nov 2019 20:49:57 +0100 Subject: [PATCH] Logging --- sorteerhoed/central_management.py | 2 +- sorteerhoed/webserver.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sorteerhoed/central_management.py b/sorteerhoed/central_management.py index 24f01a6..fd575ed 100644 --- a/sorteerhoed/central_management.py +++ b/sorteerhoed/central_management.py @@ -126,7 +126,7 @@ class CentralManagement(): - """ #TODO: make level debug() - self.logger.warn(f"SIGNAL: {signal}") + self.logger.info(f"SIGNAL: {signal}") if signal.name == 'start': self.makeHit() pass diff --git a/sorteerhoed/webserver.py b/sorteerhoed/webserver.py index 8c32ba9..622154a 100644 --- a/sorteerhoed/webserver.py +++ b/sorteerhoed/webserver.py @@ -315,7 +315,7 @@ class DrawPageHandler(tornado.web.RequestHandler): try: geoip = self.geoip_reader.country(ip) - logger.info(f"Geo {geoip}") + logger.debug(f"Geo {geoip}") self.eventQ.put(Signal('hit.info', dict(hit_id=hit.id, location=geoip.country.name))) except Exception as e: logger.exception(e)