Improve logging

This commit is contained in:
Tanner Collin 2021-03-02 11:02:54 +00:00
parent 3ca779b398
commit d468c686e7

View File

@ -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: