We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47d1606 commit fbb0d90Copy full SHA for fbb0d90
api.py
@@ -14,6 +14,8 @@
14
from os import environ as env
15
16
if env.get("SENTRY_DSN"):
17
+ app.logger.info("Detected Sentry DSN, setting up sentry...")
18
+
19
import sentry_sdk
20
sentry_sdk.init(
21
dsn=env.get("SENTRY_DSN"),
@@ -26,6 +28,8 @@
26
28
def create_app(config_filename=None):
27
29
app = Flask(__name__)
30
if env.get("TRUSTED_PROXY_COUNT"):
31
+ app.logger.info("Detected value for TRUSTED_PROXY_COUNT, setting up ProxyFix..." + env.get("TRUSTED_PROXY_COUNT"))
32
33
# for example if the request goes through one proxy
34
# before hitting your application server
35
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=int(env.get("TRUSTED_PROXY_COUNT") or 0))
0 commit comments