Improve logging
This commit is contained in:
parent
3ca779b398
commit
d468c686e7
|
@ -12,6 +12,8 @@ api = lambda route: settings.DYNMAP_ADDRESS + route
|
|||
emojis = list(emoji.unicode_codes.UNICODE_EMOJI_ENGLISH.keys())
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
|
||||
logging.info('Bridge initialized')
|
||||
|
||||
@bot.on(events.NewMessage(incoming=True))
|
||||
async def new_message(event):
|
||||
text = event.raw_text
|
||||
|
@ -38,6 +40,7 @@ async def main():
|
|||
web = aiohttp.ClientSession()
|
||||
last_time = 0
|
||||
last_msg = ''
|
||||
logging.info('Bridge loaded')
|
||||
|
||||
while True:
|
||||
async with web.get(api('/up/world/world/' + str(last_time))) as res:
|
||||
|
|
Loading…
Reference in New Issue
Block a user