Print to stderr
This commit is contained in:
parent
8b57552944
commit
2972cca582
|
@ -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())
|
||||||
|
|
Reference in a new issue