QPIDJMS-501: lower levels for SASL mech selection logging
diff --git a/qpid-jms-client/src/main/java/org/apache/qpid/jms/sasl/SaslMechanismFinder.java b/qpid-jms-client/src/main/java/org/apache/qpid/jms/sasl/SaslMechanismFinder.java
index 10b2cdc..afc5889 100644
--- a/qpid-jms-client/src/main/java/org/apache/qpid/jms/sasl/SaslMechanismFinder.java
+++ b/qpid-jms-client/src/main/java/org/apache/qpid/jms/sasl/SaslMechanismFinder.java
@@ -80,15 +80,15 @@
boolean mechConfigured = mechRestrictions != null && mechRestrictions.contains(remoteMechanism);
if (mechRestrictions != null && !mechConfigured) {
- LOG.debug("Skipping {} mechanism because it is not in the configured mechanisms restriction set", remoteMechanism);
+ LOG.trace("Skipping {} mechanism because it is not in the configured mechanisms restriction set", remoteMechanism);
} else if (mech.isApplicable(username, password, localPrincipal)) {
if (mech.isEnabledByDefault() || mechConfigured) {
found.add(mech);
} else {
- LOG.debug("Skipping {} mechanism as it must be explicitly enabled in the configured sasl mechanisms", mech);
+ LOG.trace("Skipping {} mechanism as it must be explicitly enabled in the configured sasl mechanisms", mech);
}
} else {
- LOG.debug("Skipping {} mechanism because the available credentials are not sufficient", mech);
+ LOG.trace("Skipping {} mechanism because the available credentials are not sufficient", mech);
}
}
}
@@ -103,7 +103,7 @@
"No supported mechanism, or none usable with the available credentials. Server offered: " + remoteMechanismNames);
}
- LOG.info("Best match for SASL auth was: {}", match);
+ LOG.debug("Best match for SASL auth was: {}", match);
return match;
}
@@ -129,7 +129,7 @@
try {
factory = MECHANISM_FACTORY_FINDER.newInstance(name);
} catch (ResourceNotFoundException rnfe) {
- LOG.debug("Unknown SASL mechanism: [" + name + "]");
+ LOG.trace("Unknown SASL mechanism: [" + name + "]");
} catch (Exception e) {
LOG.warn("Caught exception while finding factory for SASL mechanism {}: {}", name, e.getMessage());
}