From 92db05094571139347a0e422b09288096bb5d83b Mon Sep 17 00:00:00 2001 From: hogweed1 Date: Fri, 9 Dec 2022 11:34:44 -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 | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/bot.py b/bot.py index b760270..b886833 100644 --- a/bot.py +++ b/bot.py @@ -9,27 +9,11 @@ from othersq import sendnot -class TagFilter(logging.Filter): - def __init__(self): - self.tag = 'jack_bot' - - def filter(self, record): - record.tag = self.tag - return True - logging.basicConfig( level = logging.DEBUG, handlers = [ graypy.GELFUDPHandler('localhost', 12201) ] ) -( logging.getLogger( ) ).addFilter(TagFilter()) -#logging.LoggerAdapter(logging.getLogger( ), {'tag': 'jack_bot'}) -#root_logger = logging.getLogger( ) - -#handler = graypy.GELFUDPHandler('localhost', 12201) -#root_logger.addHandler(handler) -#root_logger.addFilter(TagFilter()) - pipisa.register_handlers_pipisa(dp) @@ -42,7 +26,3 @@ sendnot.register_handlers_sendnotal(dp) if __name__ == '__main__': executor.start_polling(dp, skip_updates=True) - - - -