]> code.delx.au - webdl/commitdiff
Log to stdout instead of stderr
authorJames Bunton <jamesbunton@delx.net.au>
Mon, 29 Jun 2020 12:39:26 +0000 (22:39 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Mon, 29 Jun 2020 12:40:21 +0000 (22:40 +1000)
common.py

index 8b05719b2ff2cc177f0c1001311e065a6c6dc6e7..cd4c266cb2c980c6b6a1d2d7ea700f718bd47d89 100644 (file)
--- a/common.py
+++ b/common.py
@@ -11,6 +11,7 @@ import requests_cache
 import shutil
 import signal
 import subprocess
+import sys
 import time
 import urllib.parse
 
@@ -26,6 +27,7 @@ except ImportError:
 logging.basicConfig(
     format = "%(levelname)s %(message)s",
     level = logging.INFO if os.environ.get("DEBUG", None) is None else logging.DEBUG,
+    stream = sys.stdout,
 )
 
 CACHE_FILE = os.path.join(