fedimg: Setup the logging for fedimg
Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@gmail.com>
This commit is contained in:
parent
eedee73479
commit
7f7b57021f
2 changed files with 22 additions and 3 deletions
|
@ -46,10 +46,16 @@
|
||||||
tags:
|
tags:
|
||||||
- fedimg
|
- fedimg
|
||||||
|
|
||||||
- name: copy koji fedmsg consumer
|
- name: copy fedimg fedmsg consumer
|
||||||
template: >
|
template: >
|
||||||
src=fedmsg.d/fedimg.py dest=/etc/fedmsg.d/fedimg.py
|
src=fedmsg.d/{{item}}
|
||||||
owner=fedmsg group=fedmsg mode=0600
|
dest=/etc/fedmsg.d/{{item}}
|
||||||
|
owner=fedmsg
|
||||||
|
group=fedmsg
|
||||||
|
mode=0600
|
||||||
|
with_items:
|
||||||
|
- fedimg.py
|
||||||
|
- logging.py
|
||||||
notify:
|
notify:
|
||||||
- restart fedmsg-hub
|
- restart fedmsg-hub
|
||||||
tags:
|
tags:
|
||||||
|
|
13
roles/fedimg/templates/fedmsg.d/logging.py
Normal file
13
roles/fedimg/templates/fedmsg.d/logging.py
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
# Setup fedmsg logging.
|
||||||
|
# See the following for constraints on this format https://bit.ly/Xn1WDn
|
||||||
|
config = dict(
|
||||||
|
logging=dict(
|
||||||
|
loggers=dict(
|
||||||
|
fedimg={
|
||||||
|
"level": "DEBUG",
|
||||||
|
"propagate": False,
|
||||||
|
"handlers": ["console"],
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)
|
Loading…
Add table
Add a link
Reference in a new issue