Skip to content

Commit 70c4565

Browse files
authored
Only enable remote log server if all required values configured (#9)
1 parent 3bf1dc2 commit 70c4565

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jwt_proxy/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ def configure_logging(app):
3131
app.logger # must call to init prior to config or it'll replace
3232
logging_config.fileConfig("logging.ini", disable_existing_loggers=False)
3333
app.logger.setLevel(getattr(logging, app.config["LOG_LEVEL"].upper()))
34-
if app.config["LOGSERVER_URL"]:
34+
if app.config["LOGSERVER_URL"] and app.config["LOGSERVER_TOKEN"]:
3535
audit_log_init(app)
3636
audit_entry("jwt_proxy logging initialized")

0 commit comments

Comments
 (0)