Fix logging of SASL errors.
This commit is contained in:
parent
8009b0485e
commit
bc8b5774ac
1 changed files with 5 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue