From bc8b5774aca6de6f69676a1f0019a0d910c98427 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Mon, 30 Jul 2012 19:43:49 -0700 Subject: Fix logging of SASL errors. --- sleekxmpp/util/sasl/client.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sleekxmpp/util/sasl/client.py b/sleekxmpp/util/sasl/client.py index 7689c3c2..36f8b7a7 100644 --- a/sleekxmpp/util/sasl/client.py +++ b/sleekxmpp/util/sasl/client.py @@ -11,11 +11,15 @@ :license: MIT, see LICENSE for more details """ +import logging import stringprep from sleekxmpp.util import hashes, bytes, stringprep_profiles +log = logging.getLogger(__name__) + + #: Global registry mapping mechanism names to implementation classes. MECHANISMS = {} @@ -157,7 +161,7 @@ def choose(mech_list, credentials, security_settings, limit=None, min_mech=None) return mech_class(best_mech, creds, security_opts) except SASLCancelled as e: - log.debug('SASL: %s: %s', (best_mech, e.message)) + log.info('SASL: %s: %s', best_mech, e.message) mech_list.remove(best_mech) return choose(mech_list, credentials, security_settings, limit=limit, -- cgit v1.2.3