add info to log about major errors

This commit is contained in:
sqlcoder 2010-02-10 19:38:44 +00:00
parent 4e89b1b000
commit b55c6023c7

View File

@ -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