-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Add additional log messages to directauth() #7716
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7716 +/- ##
=======================================
Coverage 88.79% 88.79%
=======================================
Files 296 296
Lines 41319 41328 +9
=======================================
+ Hits 36688 36698 +10
+ Misses 4631 4630 -1 ☔ View full report in Codecov by Sentry. |
ietf/api/views.py
Outdated
if user_query.filter(person__isnull=True).count() == 1: # Can't inspect user.person direclty here | ||
log.log(f"Direct auth of personless user {user.pk}:{user.username}") | ||
else: | ||
log.log(f"Direct auth: {user.pk}:{user.person.plain_name()}") | ||
log.log(f"Direct auth success: {username}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is overly chatty - can we tighten it up so that we don't get two log lines as we go through this code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. I added the Direct auth success
prefix to each successful response above.
Resolves #7709