From da81edc651b25b02475be233e71c446b583aff7f Mon Sep 17 00:00:00 2001 From: pictuga Date: Wed, 26 Jan 2022 07:57:57 +0100 Subject: [PATCH] log to stderr --- morss/morss.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/morss/morss.py b/morss/morss.py index a75d8dc..c73d2ca 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -17,6 +17,7 @@ import os import re +import sys import time from datetime import datetime from fnmatch import fnmatch @@ -59,7 +60,7 @@ def log(txt): else: # when using internal server or cli - print(repr(txt)) + print(repr(txt), file=sys.stderr) def len_html(txt):