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:
parent
e127925948
commit
fdd3648323
|
@ -35,11 +35,11 @@ Logger for code related to plug-in system.
|
|||
'''
|
||||
|
||||
consoleloghandler = logging.StreamHandler()
|
||||
consoleloghandler.setLevel(1)
|
||||
#consoleloghandler.setLevel(1)
|
||||
consoleloghandler.setFormatter(
|
||||
logging.Formatter('%(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.propagate = False
|
||||
|
||||
|
|
|
@ -195,6 +195,7 @@ class PluginManager(object):
|
|||
# removing plug-in from active plug-ins list
|
||||
self.active_plugins.remove(plugin_object)
|
||||
plugin_object.__class__._active = False
|
||||
plugin_object.__class__._instance = None
|
||||
del plugin_object
|
||||
|
||||
def deactivate_all_plugins(self):
|
||||
|
|
Loading…
Reference in New Issue