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

[minion-cvs] Make UIErrors look like log messages when they get dumped



Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv19804/lib/mixminion

Modified Files:
	Common.py 
Log Message:
Make UIErrors look like log messages when they get dumped

Index: Common.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/Common.py,v
retrieving revision 1.113
retrieving revision 1.114
diff -u -d -r1.113 -r1.114
--- Common.py	19 Oct 2003 03:12:01 -0000	1.113
+++ Common.py	7 Nov 2003 06:45:22 -0000	1.114
@@ -91,7 +91,8 @@
     """Exception raised for an error that should be reported to the user,
        not dumped as a stack trace."""
     def dump(self):
-        if str(self): print >>sys.stderr, "ERROR:", str(self)
+        if str(self):
+            print >>sys.stderr, _logtime(), "[ERROR]", str(self)
     def dumpAndExit(self):
         self.dump()
         sys.exit(1)