Skip to content

Commit

Permalink
optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
byewokko committed Oct 18, 2023
1 parent 152bb60 commit feed7c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seacatauth/audit/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async def append(
assert (isinstance(code, AuditCode))

# Do not audit anonymous sessions if desired (performance reasons)
if code == AuditCode.ANONYMOUS_SESSION_CREATED and not self.IsAnonymousLoggingEnabled:
if not self.IsAnonymousLoggingEnabled and code == AuditCode.ANONYMOUS_SESSION_CREATED:
return

# Do not use upsertor because it can trigger webhook
Expand Down

0 comments on commit feed7c6

Please sign in to comment.