diff options
| author | Ralph Bean <rbean@redhat.com> | 2016-10-28 14:59:30 +0000 |
|---|---|---|
| committer | Ralph Bean <rbean@redhat.com> | 2016-10-28 14:59:30 +0000 |
| commit | a1618aa1d16354c215f970be6d84d3f50d67b3c3 (patch) | |
| tree | c43f93a638408e218ec2cfc3f5b7fe06c08d243a /roles/fedmsg/base | |
| parent | 06e8e8360721ccba953d725091ce8cf6bf93698d (diff) | |
| download | ansible-a1618aa1d16354c215f970be6d84d3f50d67b3c3.tar.gz ansible-a1618aa1d16354c215f970be6d84d3f50d67b3c3.tar.xz ansible-a1618aa1d16354c215f970be6d84d3f50d67b3c3.zip | |
Add markdown formatting to fedmsg err emails.
This way, we can copy and paste the emails directly into github/pagure issues to
track them. Like this one, for instance:
https://github.com/fedora-infra/pdc-updater/issues/18
Diffstat (limited to 'roles/fedmsg/base')
| -rw-r--r-- | roles/fedmsg/base/templates/logging.py.j2 | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/roles/fedmsg/base/templates/logging.py.j2 b/roles/fedmsg/base/templates/logging.py.j2 index 54ba3774f..70cdbc91f 100644 --- a/roles/fedmsg/base/templates/logging.py.j2 +++ b/roles/fedmsg/base/templates/logging.py.j2 @@ -152,20 +152,24 @@ class ContextInjector(logging.Filter): hefty_format = """Message ------- [%(asctime)s][%(name)10s %(levelname)7s] +```python %(message)s +``` %(farewell)s Process Details --------------- -host: %(host)s -PID: %(pid)s -name: %(proc_name)s -command: %(command_line)s -msg_id: %(msg_id)s +- host: %(host)s +- PID: %(pid)s +- name: %(proc_name)s +- command: %(command_line)s +- msg_id: %(msg_id)s Callstack that lead to the logging statement -------------------------------------------- +```python %(callstack)s +``` """ |
