Try out mailing fedmsg errors in staging.

This commit is contained in:
Ralph Bean
2014-02-24 19:38:38 +00:00
parent 40a3a9381b
commit efb59e9f60

View File

@@ -15,18 +15,38 @@ config = dict(
"formatter": "bare",
"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",
"fromaddr": "fedmsg@fedoraproject.org",
"toaddrs": ["sysadmin-datanommer-members@fedoraproject.org"],
"subject": "fedmsg error",
},
{% 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 %}
},
),
),