summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-04-06 20:25:12 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-04-06 21:58:54 -0700
commit261c85ca450f4bb8bc6956e719d7c276927dcd95 (patch)
tree92a0cd93b3efa3dbff9b202449321916b86aea59 /python/fatcat_web
parent0e171b5aeb77690ead3bb896be196fdcc5c69a39 (diff)
downloadfatcat-261c85ca450f4bb8bc6956e719d7c276927dcd95.tar.gz
fatcat-261c85ca450f4bb8bc6956e719d7c276927dcd95.zip
web infra: log to stderr
Diffstat (limited to 'python/fatcat_web')
-rw-r--r--python/fatcat_web/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/python/fatcat_web/__init__.py b/python/fatcat_web/__init__.py
index 487de58a..07b4e083 100644
--- a/python/fatcat_web/__init__.py
+++ b/python/fatcat_web/__init__.py
@@ -1,4 +1,6 @@
+import sys
+
from flask import Flask
from flask.logging import create_logger
from flask_uuid import FlaskUUID
@@ -56,10 +58,10 @@ def auth_api(token):
return fatcat_openapi_client.DefaultApi(fatcat_openapi_client.ApiClient(conf))
if Config.FATCAT_API_AUTH_TOKEN:
- print("Found and using privileged token (eg, for account signup)")
+ print("Found and using privileged token (eg, for account signup)", file=sys.stderr)
priv_api = auth_api(Config.FATCAT_API_AUTH_TOKEN)
else:
- print("No privileged token found")
+ print("No privileged token found", file=sys.stderr)
priv_api = None
# TODO: refactor integration so this doesn't always need to be defined. If