Improve logging

master
Tanner Collin 3 years ago
parent 3ca779b398
commit d468c686e7
  1. 3
      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:

Loading…
Cancel
Save