Commits

rodolphe committed 1163967

Move up the logger instantiation

Comments (0)

Files changed (1)

django_mailman/models.py

 
 from webcall import MultipartPostHandler
 
+logger = logging.getLogger(__name__)
+
 # Mailman-Messages for a successfull subscription
 SUBSCRIBE_MSG = (
     u'Erfolgreich eingetragen', # de
     'unsubscribees_upload': None,
 }
 
-logger = logging.getLogger(__name__)
-
 def check_encoding(value, encoding):
     if isinstance(value, UnicodeType) and encoding != 'utf-8':
         value = value.encode(encoding)