Skip to content

Commit 1b5bf2a

Browse files
authored
Change SQLAlchemy logging level and add comment
1 parent 9795d6c commit 1b5bf2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,5 @@ def send_lib_file(path: str):
6969
app.logger.setLevel(gunicorn_logger.level)
7070
sqlalchemy_logger = logging.getLogger("sqlalchemy")
7171
sqlalchemy_logger.handlers = gunicorn_logger.handlers
72+
# Change SQLAlchemy logging level to "ERROR" in order to prevent query details of API keys from being logged
7273
sqlalchemy_logger.setLevel(logging.ERROR)
73-
#sqlalchemy_logger.setLevel(gunicorn_logger.level)

0 commit comments

Comments
 (0)