Author: brosner
Date: Fri Sep 12 21:37:21 2008
New Revision: 37
Modified:
trunk/mailerdev/mailer/engine.py
trunk/mailerdev/mailer/management/commands/send_mail.py
Log:
Added some output for when a process is paused.
Modified: trunk/mailerdev/mailer/engine.py
==============================================================================
--- trunk/mailerdev/mailer/engine.py (original)
+++ trunk/mailerdev/mailer/engine.py Fri Sep 12 21:37:21 2008
@@ -40,8 +40,6 @@
Send all eligible messages in the queue.
"""
- logging.info("-" * 72)
-
lock = FileLock("send_mail")
logging.debug("acquiring lock...")
Modified: trunk/mailerdev/mailer/management/commands/send_mail.py
==============================================================================
--- trunk/mailerdev/mailer/management/commands/send_mail.py (original)
+++ trunk/mailerdev/mailer/management/commands/send_mail.py Fri Sep 12
21:37:21 2008
@@ -13,6 +13,9 @@
def handle_noargs(self, **options):
logging.basicConfig(level=logging.DEBUG, format="%(message)s")
+ logging.info("-" * 72)
# if PAUSE_SEND is turned on don't do anything.
if not PAUSE_SEND:
send_all()
+ else:
+ logging.info("sending is paused, quitting.")
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---