#20495: add login failure events to django.security logger
--------------------------------------+------------------------------------
     Reporter:  ptone                 |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  contrib.auth          |                  Version:  master
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  1                     |      Needs documentation:  1
  Needs tests:  0                     |  Patch needs improvement:  1
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by boylea):

 So, a couple of things here I am not sure about... if the 'username' key
 is not in the credentials, I add it as None, and include it in the extra
 content for the logger. I did this so that format strings could refer to
 it without getting a key error. I included a test for this situation.
 Also, I added a bit to the topics/logging documentation, but I am not sure
 if this is where it should go as this file seemed to be less specific, and
 not including subloggers.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20495#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.9cbe6e4c501e7c139f4137b208fe259e%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to