Изменил(а) на 'bot.py'

This commit is contained in:
hogweed1 2022-12-09 11:20:22 -05:00
parent bc7a2e367d
commit f3e8454f58

13
bot.py
View File

@ -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())