Permalink
Browse files

minor language updates (#1241)

* reword the commit message correctly
  • Loading branch information...
davecramer committed Jul 3, 2018
1 parent f4ae60e commit e19ee7ae5742ec0cd8976c66ae22e7e500e0107b
Showing with 4 additions and 3 deletions.
  1. +2 −1 CHANGELOG.md
  2. +2 −2 pgjdbc/src/main/java/org/postgresql/Driver.java
@@ -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
@@ -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) {

0 comments on commit e19ee7a

Please sign in to comment.