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