Изменил(а) на 'bot.py'
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
bc7a2e367d
commit
f3e8454f58
13
bot.py
13
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())
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user