diff gpp/core/functions.py @ 38:c14cfd6be87a

Added basic logging to settings.py. The send_email function is now logging. Removed remnants of the DebugLog model.
author Brian Neal <bgneal@gmail.com>
date Thu, 11 Jun 2009 01:33:38 +0000
parents 91fd31dc78fb
children b7ac381996e8
line wrap: on
line diff
--- a/gpp/core/functions.py	Thu Jun 11 01:00:31 2009 +0000
+++ b/gpp/core/functions.py	Thu Jun 11 01:33:38 2009 +0000
@@ -16,8 +16,9 @@
         django.core.mail.send_mail(subject, message, from_email, recipient_list,
                 fail_silently, auth_user, auth_password)
 
-    #logging.info('EMAIL:\nFrom: %s\nTo: %s\nSubject: %s\nMessage:\n%s' % 
-    #        (from_email, str(recipient_list), subject, message))
+    import logging
+    logging.debug('EMAIL:\nFrom: %s\nTo: %s\nSubject: %s\nMessage:\n%s' %
+            (from_email, str(recipient_list), subject, message))
 
 
 def email_admins(subject, message):