Skip to content

Commit a8ae047

Browse files
dopryCopilot
andcommitted
Update oauth2_provider/oauth2_validators.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent c2f524a commit a8ae047

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

oauth2_provider/oauth2_validators.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,13 @@ def _load_application(self, client_id, request):
217217
if request.client:
218218
# check for cached client, to save the db hit if this has already been loaded
219219
if not isinstance(request.client, Application):
220-
log.debug("request.client is not an Application, something else set request.client erroneously, resetting request.client")
220+
log.debug("resetting request.client (client_id=%r): not an Application, something else set request.client erroneously", client_id)
221221
request.client = None
222222
elif request.client.client_id != client_id:
223-
log.debug("request.client client_id does not match the given client_id, resetting request.client")
223+
log.debug("resetting request.client (client_id=%r): request.client client_id does not match the given client_id", client_id)
224224
request.client = None
225225
elif not request.client.is_usable(request):
226-
log.debug("request.client is a valid Application, but is not usable, resetting request.client")
226+
log.debug("resetting request.client (client_id=%r): request.client is a valid Application, but is not usable", client_id)
227227
request.client = None
228228
else:
229229
log.debug("request.client is a valid Application, reusing it")

0 commit comments

Comments
 (0)