From 6867f79b33f4d81c9bb61e47750d182b53a4747a Mon Sep 17 00:00:00 2001 From: Pavel Vorobyov Date: Wed, 10 Jun 2020 11:02:26 +0300 Subject: [PATCH] stderr logging --- icqnotify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icqnotify.py b/icqnotify.py index a448cda..1ea58f4 100755 --- a/icqnotify.py +++ b/icqnotify.py @@ -15,10 +15,10 @@ def send(message): if not message: raise ValueError("message is empty") - print("using api base %s" % ICQ_API_URL) + sys.stderr.write("using api base %s\n" % ICQ_API_URL) bot = Bot(token=ICQ_TOKEN, api_url_base=ICQ_API_URL) r = bot.send_text(chat_id=ICQ_CHAT_ID, text=message) - print("response was:", r) + sys.stderr.write("response was: %s\n" % r) if __name__ == '__main__':