From d468c686e70904f014c033acff6930e795a38432 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Tue, 2 Mar 2021 11:02:54 +0000 Subject: [PATCH] Improve logging --- teledynmap.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/teledynmap.py b/teledynmap.py index b056f5d..796a403 100644 --- a/teledynmap.py +++ b/teledynmap.py @@ -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: