aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-06-06 20:58:25 +0100
committerGravatar Gareth Coles <[email protected]>2018-06-06 20:58:25 +0100
commit7a47d57c4eb0e6c79fb41e7c12e2533d2b3dc9dd (patch)
tree1b6975ec71d07381f68983c585e2b06998b5ba75
parent[Logging] Fix dumb mistake (diff)
Use stdout for logging
-rw-r--r--bot/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/__init__.py b/bot/__init__.py
index 8780292a1..840c7b47c 100644
--- a/bot/__init__.py
+++ b/bot/__init__.py
@@ -36,7 +36,7 @@ DEBUG_MODE = True if 'local' in os.environ.get("SITE_URL", "local") else False
if DEBUG_MODE:
- logging_handlers.append(StreamHandler(stream=sys.stderr))
+ logging_handlers.append(StreamHandler(stream=sys.stdout))
json_handler = logging.FileHandler(filename="log.json", mode="w")
json_handler.formatter = JsonFormatter()
@@ -44,7 +44,7 @@ if DEBUG_MODE:
else:
logging_handlers.append(logging.FileHandler(filename="log.txt", mode="w"))
- json_handler = logging.StreamHandler(stream=sys.stderr)
+ json_handler = logging.StreamHandler(stream=sys.stdout)
json_handler.formatter = JsonFormatter()
logging_handlers.append(json_handler)