forked from Pavel_Durov/python_bot
test logs
This commit is contained in:
parent
7d28bb1093
commit
bfe6adea42
12
bot.py
12
bot.py
@ -1,14 +1,22 @@
|
|||||||
from create_bot import dp
|
|
||||||
import logging
|
import logging
|
||||||
|
import graypy
|
||||||
|
|
||||||
from aiogram import executor
|
from aiogram import executor
|
||||||
|
|
||||||
|
from create_bot import dp
|
||||||
from handlers import pipisa, time_new_year, start_help
|
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')
|
||||||
|
my_logger.setLevel(logging.DEBUG)
|
||||||
|
|
||||||
|
handler = graypy.GELFUDPHandler('localhost', 12201)
|
||||||
|
my_logger.addHandler(handler)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
pipisa.register_handlers_pipisa(dp)
|
pipisa.register_handlers_pipisa(dp)
|
||||||
|
Loading…
Reference in New Issue
Block a user