From f3e8454f5802f3bd269cc769430e86078eb7d22c Mon Sep 17 00:00:00 2001 From: hogweed1 Date: Fri, 9 Dec 2022 11:20:22 -0500 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?= =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'bot.py'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/bot.py b/bot.py index e302d97..3072ec9 100644 --- a/bot.py +++ b/bot.py @@ -18,14 +18,17 @@ class TagFilter(logging.Filter): return True -logging.basicConfig(level=logging.DEBUG) +logging.basicConfig( + level = logging.DEBUG, + handlers = [ graypy.GELFUDPHandler('localhost', 12201) ] +) -root_logger = logging.getLogger( ) +#root_logger = logging.getLogger( ) -handler = graypy.GELFUDPHandler('localhost', 12201) -root_logger.addHandler(handler) -root_logger.addFilter(TagFilter()) +#handler = graypy.GELFUDPHandler('localhost', 12201) +#root_logger.addHandler(handler) +#root_logger.addFilter(TagFilter())