[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r18719: {projects} Update sendPackage with useful logging messages. (projects/gettor/gettor)



Author: ioerror
Date: 2009-02-28 08:47:35 -0500 (Sat, 28 Feb 2009)
New Revision: 18719

Modified:
   projects/gettor/gettor/responses.py
Log:
Update sendPackage with useful logging messages.


Modified: projects/gettor/gettor/responses.py
===================================================================
--- projects/gettor/gettor/responses.py	2009-02-28 13:39:52 UTC (rev 18718)
+++ projects/gettor/gettor/responses.py	2009-02-28 13:47:35 UTC (rev 18719)
@@ -139,8 +139,10 @@
         """)
         package = self.constructMessage(message, source, destination, filename)
         try:
+            log.info(_("Attempting to send package: %s") % str(package))
             status = self.sendMessage(package, source, destination)
         except:
+            log.info(_("Failed at attempt to send package: %s") % str(package))
             status = False
         self.setLang(self.mailLang)