# HG changeset patch
# User Guénaël Muller <gmuller@logilab.fr>
# Date 1469005005 -7200
# Wed Jul 20 10:56:45 2016 +0200
# Node ID d133b8474c73b506e34e8366ad6a3ae4eded04e9
# Parent 89f18ee6fab0219a6c34712742dde57ba1bcb274
[log] use warning instead of error log level for ejabberd connection
Ejabberd connection may fail without any consequences, for example
when finding vcard for user which has no vcard.
# User Guénaël Muller <gmuller@logilab.fr>
# Date 1469005005 -7200
# Wed Jul 20 10:56:45 2016 +0200
# Node ID d133b8474c73b506e34e8366ad6a3ae4eded04e9
# Parent 89f18ee6fab0219a6c34712742dde57ba1bcb274
[log] use warning instead of error log level for ejabberd connection
Ejabberd connection may fail without any consequences, for example
when finding vcard for user which has no vcard.
@@ -20,12 +20,12 @@
1 try: 2 fn = getattr(self.server, command) 3 ret = fn(self.login, data) 4 except Exception as e: 5 ret = None 6 - self.logger.error(e) 7 - self.logger.error('Connexion error with {}, {}'.format(command, 8 + self.logger.warning(e) 9 + self.logger.warning('Connexion error with {}, {}'.format(command, 10 str(data))) 11 return ret 12 13 # Ejabberd Commmands ### 14