Skip to content

Commit

Permalink
minor language updates (#1241)
Browse files Browse the repository at this point in the history
* reword the commit message correctly
  • Loading branch information
davecramer committed Jul 3, 2018
1 parent f4ae60e commit e19ee7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pgjdbc/src/main/java/org/postgresql/Driver.java
Expand Up @@ -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)));
Expand All @@ -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) {
Expand Down

0 comments on commit e19ee7a

Please sign in to comment.