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

[or-cvs] r16924: {weather} Update error logging for the single instance of a poll funct (weather/trunk)



Author: ioerror
Date: 2008-09-17 20:09:56 -0400 (Wed, 17 Sep 2008)
New Revision: 16924

Modified:
   weather/trunk/poll.py
Log:
Update error logging for the single instance of a poll function.


Modified: weather/trunk/poll.py
===================================================================
--- weather/trunk/poll.py	2008-09-17 23:11:58 UTC (rev 16923)
+++ weather/trunk/poll.py	2008-09-18 00:09:56 UTC (rev 16924)
@@ -54,10 +54,11 @@
     try:
        info = self.control.get_info(string)
     except:
+        # Remove this, it's a hack to debug this specific bug
         x = traceback.format_exc()
-        fh = file("/tmp/failed-ping-log", a)
-        file.write(x)
-        file.close(fh)
+        fh = file("/tmp/failed-ping-log", "a")
+        fh.write(x)
+        fh.close()
         info = None
         return False
     # info looks like this: