Skip to content

Commit fbeb75f

Browse files
dopryCopilot
andauthored
Update oauth2_provider/oauth2_validators.py
Co-authored-by: Copilot <[email protected]>
1 parent 3f4c9b9 commit fbeb75f

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
@@ -205,13 +205,13 @@ def _load_application(self, client_id, request):
205205
if request.client:
206206
# check for cached client, to save the db hit if this has already been loaded
207207
if not isinstance(request.client, Application):
208-
log.debug("request.client is not an Application, something else set request.client erroneously, resetting request.client")
208+
log.debug("resetting request.client (client_id=%r): not an Application, something else set request.client erroneously", client_id)
209209
request.client = None
210210
elif request.client.client_id != client_id:
211-
log.debug("request.client client_id does not match the given client_id, resetting request.client")
211+
log.debug("resetting request.client (client_id=%r): request.client client_id does not match the given client_id", client_id)
212212
request.client = None
213213
elif not request.client.is_usable(request):
214-
log.debug("request.client is a valid Application, but is not usable, resetting request.client")
214+
log.debug("resetting request.client (client_id=%r): request.client is a valid Application, but is not usable", client_id)
215215
request.client = None
216216
else:
217217
log.debug("request.client is a valid Application, reusing it")

0 commit comments

Comments
 (0)