Fix tracebacks when the debug adapter dies very quickly

This commit is contained in:
Ben Jackson 2020-01-02 23:55:46 +00:00
commit 37fefafe35
4 changed files with 28 additions and 14 deletions

View file

@ -23,8 +23,10 @@ import string
import functools
_log_handler = logging.FileHandler( os.path.expanduser( '~/.vimspector.log' ),
mode = 'w' )
LOG_FILE = os.path.expanduser( os.path.join( '~', '.vimspector.log') )
_log_handler = logging.FileHandler( LOG_FILE, mode = 'w' )
_log_handler.setFormatter(
logging.Formatter( '%(asctime)s - %(levelname)s - %(message)s' ) )