diff accounts/__init__.py @ 690:988782c6ce6c

For #48, rework blocking code to use fail2ban.
author Brian Neal <bgneal@gmail.com>
date Sun, 01 Sep 2013 00:15:42 -0500
parents ee87ea74d46b
children
line wrap: on
line diff
--- a/accounts/__init__.py	Sat Aug 31 14:50:03 2013 -0500
+++ b/accounts/__init__.py	Sun Sep 01 00:15:42 2013 -0500
@@ -4,6 +4,9 @@
 from django.contrib.auth.models import User
 
 
+logger = logging.getLogger('auth')
+
+
 def create_new_user(pending_user, ip=None, admin_activation=False):
     """
     This function contains the code to create a new user from a
@@ -34,4 +37,4 @@
         msg = 'Accounts registration confirmed by USER for %s from %s' % (
                 new_user.username, ip)
 
-    logging.info(msg)
+    logger.info(msg)