Skip to content
Permalink
Browse files

Fix logging level (#1446)

Perhaps I'm missing something, but I don't think successful hostname validation should log on SEVERE/ERROR.
  • Loading branch information...
kszafran authored and davecramer committed Mar 20, 2019
1 parent 42d6bfa commit f8c112cbeea4f1ceb893678407aa0149a08a8f28
Showing with 1 addition and 1 deletion.
  1. +1 −1 pgjdbc/src/main/java/org/postgresql/ssl/PGjdbcHostnameVerifier.java
@@ -152,7 +152,7 @@ public boolean verify(String hostname, SSLSession session) {
anyDnsSan |= sanType == TYPE_DNS_NAME;
if (verifyHostName(canonicalHostname, san)) {
if (LOGGER.isLoggable(Level.FINEST)) {
LOGGER.log(Level.SEVERE,
LOGGER.log(Level.FINEST,
GT.tr("Server name validation pass for {0}, subjectAltName {1}", hostname, san));
}
return true;

0 comments on commit f8c112c

Please sign in to comment.
You can’t perform that action at this time.