From 259fce8d62c8d895802132a744c46f45f73fbc01 Mon Sep 17 00:00:00 2001 From: Jan Kaluza Date: Feb 26 2020 10:05:20 +0000 Subject: Add missing fedmsg.d directory. --- diff --git a/dev_scripts/fedmsg.d/freshmaker-logging.py b/dev_scripts/fedmsg.d/freshmaker-logging.py new file mode 100644 index 0000000..ea967fb --- /dev/null +++ b/dev_scripts/fedmsg.d/freshmaker-logging.py @@ -0,0 +1,40 @@ +config = dict(logging={ + "version": 1, + "formatters": { + "bare": { + "datefmt": "%Y-%m-%d %H:%M:%S", + "format": "[%(asctime)s][%(name)10s %(levelname)7s] %(message)s" + } + }, + "loggers": { + "freshmaker": { + "handlers": ["console"], "propagate": False, "level": "DEBUG"}, + "fedmsg": { + "handlers": ["console"], "propagate": False, "level": "INFO"}, + "moksha": { + "handlers": ["console"], "propagate": False, "level": "INFO"}, + "requests": { + "level": "WARNING", + "propagate": True, + "handlers": ["console"], + }, + "requests_kerberos": { + "level": "WARNING", + "propagate": True, + "handlers": ["console"], + }, + "dogpile": { + "level": "WARNING", + "propagate": True, + "handlers": ["console"], + }, + }, + "handlers": { + "console": { + "formatter": "bare", + "class": "logging.StreamHandler", + "stream": "ext://sys.stdout", + "level": "DEBUG" + } + }, +})