Make verbose logging less verbose

This commit is contained in:
Philipp Hörist 2017-01-04 00:57:11 +01:00
parent a6bda765eb
commit a5cce0c749
2 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ class GlobalEventsDispatcher(object):
%(handler, priority, event_name, error))
def raise_event(self, event_name, *args, **kwargs):
log.debug('%s\nArgs: %s'%(event_name, str(args)))
log.debug('%s Args: %s'%(event_name, str(args)))
if event_name in self.handlers:
node_processed = False
for priority, handler in self.handlers[event_name]:

View File

@ -161,8 +161,8 @@ def set_loglevels(loglevels_string):
parseAndSetLogLevels(loglevels_string)
def set_verbose():
parseAndSetLogLevels('gajim=1')
parseAndSetLogLevels('.nbxmpp=1')
parseAndSetLogLevels('gajim=DEBUG')
parseAndSetLogLevels('.nbxmpp=INFO')
def set_quiet():
parseAndSetLogLevels('gajim=CRITICAL')