Browse files

Don't close file logger on exit of debugger

  • Loading branch information...
1 parent 5fef790 commit 0a77dce6f117f15f56c25e81861de25212fe3c74 @joonty committed Feb 28, 2013
Showing with 5 additions and 3 deletions.
  1. +4 −1 plugin/python/vdebug/log.py
  2. +1 −2 plugin/python/vdebug/ui/vimui.py
View
5 plugin/python/vdebug/log.py
@@ -106,7 +106,10 @@ def log(cls, string, level = Logger.INFO):
@classmethod
def set_logger(cls, logger):
- cls.loggers[logger.__class__.__name__] = logger
+ k = logger.__class__.__name__
+ if k in cls.loggers:
+ cls.loggers[k].shutdown()
+ cls.loggers[k] = logger
@classmethod
def remove_logger(cls, type):
View
3 plugin/python/vdebug/ui/vimui.py
@@ -149,8 +149,7 @@ def close(self):
if self.statuswin:
self.statuswin.destroy()
- vdebug.log.Log.shutdown()
-
+ vdebug.log.Log.remove_logger('WindowLogger')
vim.command('silent! '+self.tabnr+'tabc!')
self.watchwin = None

0 comments on commit 0a77dce

Please sign in to comment.