add info to log about major errors
This commit is contained in:
parent
4e89b1b000
commit
b55c6023c7
|
@ -80,6 +80,8 @@ class HUD_main(object):
|
||||||
fileName = os.path.join(self.config.dir_log, 'HUD-errors.txt')
|
fileName = os.path.join(self.config.dir_log, 'HUD-errors.txt')
|
||||||
print "Note: error output is being diverted to:\n"+fileName \
|
print "Note: error output is being diverted to:\n"+fileName \
|
||||||
+ "\nAny major error will be reported there _only_.\n"
|
+ "\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)
|
errorFile = open(fileName, 'w', 0)
|
||||||
sys.stderr = errorFile
|
sys.stderr = errorFile
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user