From b55c6023c74aa0da4b5f998c3a547cb3afae910e Mon Sep 17 00:00:00 2001 From: sqlcoder Date: Wed, 10 Feb 2010 19:38:44 +0000 Subject: [PATCH] add info to log about major errors --- pyfpdb/HUD_main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyfpdb/HUD_main.py b/pyfpdb/HUD_main.py index 35864807..7cc72886 100755 --- a/pyfpdb/HUD_main.py +++ b/pyfpdb/HUD_main.py @@ -80,6 +80,8 @@ class HUD_main(object): fileName = os.path.join(self.config.dir_log, 'HUD-errors.txt') print "Note: error output is being diverted to:\n"+fileName \ + "\nAny major error will be reported there _only_.\n" + log.info("Note: error output is being diverted to:"+fileName) + log.info("Any major error will be reported there _only_.") errorFile = open(fileName, 'w', 0) sys.stderr = errorFile