diff options
author | Lance Stout <lancestout@gmail.com> | 2012-07-30 19:43:49 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-07-30 19:43:49 -0700 |
commit | bc8b5774aca6de6f69676a1f0019a0d910c98427 (patch) | |
tree | ba149881df9348a5029cf09d3459f172b42c87ad /sleekxmpp/util/sasl/client.py | |
parent | 8009b0485e1205833af03f914721a7789f88e31c (diff) | |
download | slixmpp-bc8b5774aca6de6f69676a1f0019a0d910c98427.tar.gz slixmpp-bc8b5774aca6de6f69676a1f0019a0d910c98427.tar.bz2 slixmpp-bc8b5774aca6de6f69676a1f0019a0d910c98427.tar.xz slixmpp-bc8b5774aca6de6f69676a1f0019a0d910c98427.zip |
Fix logging of SASL errors.
Diffstat (limited to 'sleekxmpp/util/sasl/client.py')
-rw-r--r-- | sleekxmpp/util/sasl/client.py | 6 |
1 files changed, 5 insertions, 1 deletions
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, |