Commit ccaf4312 authored by Pierre-Elliott Bécue's avatar Pierre-Elliott Bécue
Browse files

[trigger] Les %s sont parfois mieux quand on loggue.

parent 2a4516fc
......@@ -38,7 +38,7 @@ for config_service in trigger_config.all_services:
try:
services.append(importlib.import_module("gestion.trigger.services.%s" % (config_service,)))
except Exception as e:
logger.critical("Fatal : import of %r failed, see following traceback. %r", config_service, traceback.format_exc())
logger.critical("Fatal : import of %s failed, see following traceback. %s", config_service, traceback.format_exc())
class EventProducer(cmb.BasicProducer):
"""
......
......@@ -52,7 +52,7 @@ class MetaService(type):
# I really love getattr.
get = getattr(cls, func_name, None)
if get is None:
logger.critical("Fatal, bad function (%r) reference in %r.", func_name, cname)
logger.critical("Fatal, bad function (%s) reference in %s.", func_name, cname)
continue
changes_trigger[ldap_attr_name].append(get)
setattr(cls, "changes_trigger", changes_trigger)
......
......@@ -36,7 +36,7 @@ for config_service in trigger_config.services[hostname]:
try:
services[config_service] = importlib.import_module("gestion.trigger.services.%s" % (config_service,))
except Exception as e:
logger.critical("Fatal : import of %r failed, see following traceback. %r", config_service, traceback.format_exc())
logger.critical("Fatal : import of %s failed, see following traceback. %s", config_service, traceback.format_exc())
class EvenementListener(cmb.AsynchronousConsumer):
"""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment