From 2972cca58290ca365c13c78c4addd62f91c02446 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sun, 8 Jan 2023 16:55:14 +0400 Subject: [PATCH] Print to stderr --- mirrortea | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mirrortea b/mirrortea index 1ac046d..b6177f2 100755 --- a/mirrortea +++ b/mirrortea @@ -1,6 +1,7 @@ #!/usr/bin/env python3 import asyncio +import sys import aiogram as telegram import nio as matrix @@ -31,10 +32,10 @@ async def matrix_loop(client): await client.sync_forever(timeout=30000) async def telegram_loop(): - print(456) + print(456, file=sys.stderr) async def matrix_on_message(room, event): - print(room, event) + print(room, event, file=sys.stderr) if __name__ == '__main__': asyncio.run(main())