More appropriate logging entries for final error shutdown
This commit is contained in:
+4
-3
@@ -168,10 +168,11 @@ def exceptionHandler(exType, exValue, exTrace):
|
|||||||
# Try a controlled shudown
|
# Try a controlled shudown
|
||||||
nwGUI.closeProject(isYes=True)
|
nwGUI.closeProject(isYes=True)
|
||||||
nwGUI.closeMain()
|
nwGUI.closeMain()
|
||||||
logger.critical("Emergency shutdown successful")
|
logger.info("Emergency shutdown successful")
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error("Could not close the project before exiting.")
|
logger.critical("Could not close the project before exiting")
|
||||||
logger.error(str(e))
|
logger.critical(str(e))
|
||||||
|
|
||||||
qApp.exit(1)
|
qApp.exit(1)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user