Skip to content
Snippets Groups Projects
Commit 5bc57105 authored by Dicson's avatar Dicson
Browse files

use standard format for plugin_system logger output

parent f1398992
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,8 @@ Helper code related to plug-ins management system.
__all__ = ['log', 'log_calls', 'Singleton']
import logging
import functools
log = logging.getLogger('gajim.plugin_system')
'''
Logger for code related to plug-in system.
......@@ -34,17 +36,6 @@ Logger for code related to plug-in system.
:type: logging.Logger
'''
consoleloghandler = logging.StreamHandler()
#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.addHandler(consoleloghandler)
log.propagate = False
import functools
class GajimPluginActivateException(Exception):
'''
Raised when activation failed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment