Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rejuvenate log levels #623

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ public void check(Certificate certificate, Collection<String> collection)

if (issuerList.isEmpty())
{
LOG.log(Level.INFO, "configured with 0 pre-loaded CRLs");
LOG.log(Level.FINEST, "configured with 0 pre-loaded CRLs");
}
else
{
Expand Down Expand Up @@ -585,7 +585,7 @@ private CRL downloadCRLs(X500Principal issuer, Date currentDate, ASN1Primitive c

urlStream.close();

LOG.log(Level.INFO, "downloaded CRL from CrlDP " + url + " for issuer \"" + issuer + "\"");
LOG.log(Level.FINEST, "downloaded CRL from CrlDP " + url + " for issuer \"" + issuer + "\"");

crlCache.put(name, new WeakReference<X509CRL>(crl));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ static boolean getBooleanSystemProperty(String propertyName, boolean defaultValu
LOG.log(Level.INFO, "Found boolean system property [" + propertyName + "]: " + false);
return false;
}
LOG.log(Level.WARNING, "Unrecognized value for boolean system property [" + propertyName + "]: " + propertyValue);
LOG.log(Level.FINEST, "Unrecognized value for boolean system property [" + propertyName + "]: " + propertyValue);
}
LOG.log(Level.FINE, "Boolean system property [" + propertyName + "] defaulted to: " + defaultValue);
LOG.log(Level.FINEST, "Boolean system property [" + propertyName + "] defaulted to: " + defaultValue);
return defaultValue;
}

Expand Down Expand Up @@ -89,7 +89,7 @@ static int getIntegerSystemProperty(String propertyName, int defaultValue, int m
LOG.log(Level.WARNING, "Unrecognized value for integer system property [" + propertyName + "]: " + propertyValue);
}
}
LOG.log(Level.FINE, "Integer system property [" + propertyName + "] defaulted to: " + defaultValue);
LOG.log(Level.FINEST, "Integer system property [" + propertyName + "] defaulted to: " + defaultValue);
return defaultValue;
}

Expand All @@ -101,7 +101,7 @@ static String getStringSecurityProperty(String propertyName, String defaultValue
LOG.log(Level.INFO, "Found string security property [" + propertyName + "]: " + propertyValue);
return propertyValue;
}
LOG.log(Level.WARNING, "String security property [" + propertyName + "] defaulted to: " + defaultValue);
LOG.log(Level.FINEST, "String security property [" + propertyName + "] defaulted to: " + defaultValue);
return defaultValue;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ private static String[] getJdkTlsProtocols(String protocolsPropertyName)
{
if (!SUPPORTED_PROTOCOL_MAP.containsKey(protocol))
{
LOG.warning("'" + protocolsPropertyName + "' contains unsupported protocol: " + protocol);
LOG.fine("'" + protocolsPropertyName + "' contains unsupported protocol: " + protocol);
}
else if (!JsseUtils.contains(result, protocol))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private static int[] getJdkTlsNamedGroups(boolean provDisableChar2)
int namedGroup = NamedGroup.getByName(Strings.toLowerCase(name));
if (namedGroup < 0)
{
LOG.warning("'" + PROPERTY_NAMED_GROUPS + "' contains unrecognised NamedGroup: " + name);
LOG.info("'" + PROPERTY_NAMED_GROUPS + "' contains unrecognised NamedGroup: " + name);
}
else if (provDisableChar2 && NamedGroup.isChar2Curve(namedGroup))
{
Expand Down