Skip to content

Commit

Permalink
refactor: change authorization logs from INFO to DEBUG level
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Kirsche committed Oct 3, 2023
1 parent c2db7e6 commit 968b271
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions languages/python/sqlalchemy-oso/sqlalchemy_oso/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def do_orm_execute(execute_state):
return

entities = all_entities_in_statement(execute_state.statement)
logger.info(f"Authorizing entities: {entities}")
logger.debug(f"Authorizing entities: {entities}")
for entity in entities:
action = checked_permissions.get(entity)

Expand All @@ -316,7 +316,7 @@ def do_orm_execute(execute_state):
else:
filter = authorize_model(oso, user, action, session, entity)
if filter is not None:
logger.info(f"Applying filter {filter} to entity {entity}")
logger.debug(f"Applying filter {filter} to entity {entity}")
where = with_loader_criteria(entity, filter, include_aliases=True)
execute_state.statement = execute_state.statement.options(where)
else:
Expand Down

0 comments on commit 968b271

Please sign in to comment.