fedmsg error logs work.

This commit is contained in:
Ralph Bean 2014-02-24 19:59:27 +00:00
parent efb59e9f60
commit ad28ec6b08

View file

@ -16,37 +16,27 @@ config = dict(
"level": "DEBUG",
"stream": "ext://sys.stdout",
},
{% if env == 'staging' %}
mailer={
"class": "logging.handlers.SMTPHandler",
# TODO -- potentially change this to a nicer mail formatter.
"formatter": "bare",
"level": "ERROR",
"mailhost": "bastion.fedoraproject.org",
"mailhost": "bastion.phx2.fedoraproject.org",
"fromaddr": "fedmsg@fedoraproject.org",
"toaddrs": ["sysadmin-datanommer-members@fedoraproject.org"],
"subject": "fedmsg error",
"subject": "fedmsg error log",
},
{% endif %}
),
loggers=dict(
fedmsg={
"level": "DEBUG",
"propagate": False,
{% if env == 'staging' %}
"handlers": ["console", "mailer"],
{% else %}
"handlers": ["console"],
{% endif %}
},
moksha={
"level": "DEBUG",
"propagate": False,
{% if env == 'staging' %}
"handlers": ["console", "mailer"],
{% else %}
"handlers": ["console"],
{% endif %}
},
),
),