Small improvements: plug-in instance object dereferenced on deactivation. 'gajim.plugin_system' logger doesn't set level DEBUG by default (have to use command-line option '-l' from now on).

This commit is contained in:
Mateusz Biliński 2008-06-08 16:36:46 +00:00
parent e127925948
commit fdd3648323
2 changed files with 3 additions and 2 deletions

View File

@ -35,11 +35,11 @@ Logger for code related to plug-in system.
''' '''
consoleloghandler = logging.StreamHandler() consoleloghandler = logging.StreamHandler()
consoleloghandler.setLevel(1) #consoleloghandler.setLevel(1)
consoleloghandler.setFormatter( consoleloghandler.setFormatter(
logging.Formatter('%(levelname)s: %(message)s')) logging.Formatter('%(levelname)s: %(message)s'))
#logging.Formatter('%(asctime)s %(name)s: %(levelname)s: %(message)s')) #logging.Formatter('%(asctime)s %(name)s: %(levelname)s: %(message)s'))
log.setLevel(logging.DEBUG) #log.setLevel(logging.DEBUG)
log.addHandler(consoleloghandler) log.addHandler(consoleloghandler)
log.propagate = False log.propagate = False

View File

@ -195,6 +195,7 @@ class PluginManager(object):
# removing plug-in from active plug-ins list # removing plug-in from active plug-ins list
self.active_plugins.remove(plugin_object) self.active_plugins.remove(plugin_object)
plugin_object.__class__._active = False plugin_object.__class__._active = False
plugin_object.__class__._instance = None
del plugin_object del plugin_object
def deactivate_all_plugins(self): def deactivate_all_plugins(self):