Logging
This commit is contained in:
parent
3111d2cc85
commit
8971618982
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue