From e19ee7ae5742ec0cd8976c66ae22e7e500e0107b Mon Sep 17 00:00:00 2001 From: Dave Cramer Date: Tue, 3 Jul 2018 14:34:03 -0400 Subject: [PATCH] minor language updates (#1241) * reword the commit message correctly --- CHANGELOG.md | 3 ++- pgjdbc/src/main/java/org/postgresql/Driver.java | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a9894a0090..8ec304ce33 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ## [Unreleased] ### Changed -- Avoid the print of highest logger levels when the exception is re-thrown. [PR 1187](https://github.com/pgjdbc/pgjdbc/pull/1187) +- Reduce the severity of the erorr log messages when an exception is re-thrown. The error will be +thrown to caller to be dealt with so no need to log at this verbosity by pgjdbc [PR 1187](https://github.com/pgjdbc/pgjdbc/pull/1187) ## [42.2.2] (2018-03-15) ### Added diff --git a/pgjdbc/src/main/java/org/postgresql/Driver.java b/pgjdbc/src/main/java/org/postgresql/Driver.java index 820762912d..7cdeb76031 100644 --- a/pgjdbc/src/main/java/org/postgresql/Driver.java +++ b/pgjdbc/src/main/java/org/postgresql/Driver.java @@ -563,7 +563,7 @@ public static Properties parseURL(String url, Properties defaults) { l_urlServer = l_urlServer.substring(2); int slash = l_urlServer.indexOf('/'); if (slash == -1) { - LOGGER.log(Level.WARNING, "JDBC URL must contain a slash at the end of the host or port: {0}", url); + LOGGER.log(Level.WARNING, "JDBC URL must contain a / at the end of the host or port: {0}", url); return null; } urlProps.setProperty("PGDBNAME", URLCoder.decode(l_urlServer.substring(slash + 1))); @@ -578,7 +578,7 @@ public static Properties parseURL(String url, Properties defaults) { try { int port = Integer.parseInt(portStr); if (port < 1 || port > 65535) { - LOGGER.log(Level.WARNING, "JDBC URL port in invalid range: {0}", portStr); + LOGGER.log(Level.WARNING, "JDBC URL port: {0} not valid (1:65535) ", portStr); return null; } } catch (NumberFormatException ignore) {