summaryrefslogtreecommitdiffstats
path: root/roles/fedmsg/base/templates
diff options
context:
space:
mode:
authorRalph Bean <rbean@redhat.com>2015-10-01 16:13:20 +0000
committerRalph Bean <rbean@redhat.com>2015-10-01 16:13:24 +0000
commit3256dc011ea55cb4dbb6dd1dc761281b74d78f24 (patch)
tree700e3d253056e9d37300cb8084f7d3969be23bae /roles/fedmsg/base/templates
parent946fdad389a42f6ee2c453eb393f75c28b07983f (diff)
downloadansible-3256dc011ea55cb4dbb6dd1dc761281b74d78f24.tar.gz
ansible-3256dc011ea55cb4dbb6dd1dc761281b74d78f24.tar.xz
ansible-3256dc011ea55cb4dbb6dd1dc761281b74d78f24.zip
Try including threadName in bodhi masher logs.
Diffstat (limited to 'roles/fedmsg/base/templates')
-rw-r--r--roles/fedmsg/base/templates/logging.py.j28
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/fedmsg/base/templates/logging.py.j2 b/roles/fedmsg/base/templates/logging.py.j2
index 5eaf87d45..a29096ba4 100644
--- a/roles/fedmsg/base/templates/logging.py.j2
+++ b/roles/fedmsg/base/templates/logging.py.j2
@@ -140,7 +140,15 @@ config = dict(
formatters=dict(
bare={
"datefmt": "%Y-%m-%d %H:%M:%S",
+ {% if inventory_hostname.startswith('bodhi-backend01') %}
+ # Here we use a different format just so we can include
+ # threadName. We set the threadName in the bodhi masher to some
+ # useful strings that will tell us which branch is doing what.
+ # See https://github.com/fedora-infra/bodhi/commit/66d94094
+ "format": "[%(asctime)s][%(name)10s %(levelname)7s]%(threadName)s %(message)s"
+ {% else %}
"format": "[%(asctime)s][%(name)10s %(levelname)7s] %(message)s"
+ {% endif %}
},
hefty={
"datefmt": "%Y-%m-%d %H:%M:%S",