forked from Pavel_Durov/python_bot
Изменил(а) на 'bot.py'
This commit is contained in:
parent
bfe6adea42
commit
2b23fa727f
8
bot.py
8
bot.py
@ -8,14 +8,14 @@ from handlers import pipisa, time_new_year, start_help
|
|||||||
from othersq import sendnot
|
from othersq import sendnot
|
||||||
|
|
||||||
|
|
||||||
# logging.basicConfig(level=logging.DEBUG)
|
logging.basicConfig(level=logging.DEBUG)
|
||||||
|
|
||||||
|
|
||||||
my_logger = logging.getLogger('bot_logger')
|
root_logger = logging.getLogger( )
|
||||||
my_logger.setLevel(logging.DEBUG)
|
#my_logger.setLevel(logging.DEBUG)
|
||||||
|
|
||||||
handler = graypy.GELFUDPHandler('localhost', 12201)
|
handler = graypy.GELFUDPHandler('localhost', 12201)
|
||||||
my_logger.addHandler(handler)
|
root_logger.addHandler(handler)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user