Tracebacks will be logged to error.log instead creating socializer.exe.log

This commit is contained in:
Manuel Cortez 2019-01-13 22:35:45 -06:00
parent 0ab5b873f1
commit be6fb7bd75

View File

@ -2,6 +2,7 @@
import logger import logger
import sys import sys
import fixes import fixes
import traceback
if hasattr(sys, "frozen"): if hasattr(sys, "frozen"):
fixes.setup() fixes.setup()
import platform import platform
@ -13,6 +14,7 @@ import output
import logging import logging
import keys import keys
import application import application
sys.excepthook = lambda x, y, z: logging.critical(''.join(traceback.format_exception(x, y, z)))
from mysc.thread_utils import call_threaded from mysc.thread_utils import call_threaded
log = logging.getLogger("main") log = logging.getLogger("main")