Print to stderr

This commit is contained in:
Alex Kotov 2023-01-08 16:55:14 +04:00
parent 8b57552944
commit 2972cca582
No known key found for this signature in database
GPG key ID: 553C0EBBEB5D5F08

View file

@ -1,6 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import asyncio import asyncio
import sys
import aiogram as telegram import aiogram as telegram
import nio as matrix import nio as matrix
@ -31,10 +32,10 @@ async def matrix_loop(client):
await client.sync_forever(timeout=30000) await client.sync_forever(timeout=30000)
async def telegram_loop(): async def telegram_loop():
print(456) print(456, file=sys.stderr)
async def matrix_on_message(room, event): async def matrix_on_message(room, event):
print(room, event) print(room, event, file=sys.stderr)
if __name__ == '__main__': if __name__ == '__main__':
asyncio.run(main()) asyncio.run(main())