Skip to content

Commit 735b2fe

Browse files
author
Roman Sutormin
authored
Merge pull request #29 from MrCreosote/develop
Fix logging bug with auth startup.
2 parents 176776d + a4375d5 commit 735b2fe

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

RELEASE_NOTES.txt

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ OVERVIEW
44
-----------------------------------------
55
Repo for code shared between Java services.
66

7+
VERSION: 0.0.22 (Released 9/15/2016)
8+
--------------------------------------
9+
10+
UPDATED FEATURES / MAJOR BUG FIXES:
11+
- Fixed a bug that would throw an IllegalStateError when configuration of the
12+
authentication client in JsonServerServlet failed rather than logging the
13+
error.
14+
715
VERSION: 0.0.21 (Released 8/26/2016)
816
--------------------------------------
917

src/us/kbase/common/service/JsonServerServlet.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -188,16 +188,18 @@ private ConfigurableAuthService getAuth(final Map<String, String> config) {
188188
c.withKBaseAuthServerURL(new URL(authURL));
189189
} catch (URISyntaxException | MalformedURLException e) {
190190
startupFailed();
191-
sysLogger.logErr(String.format(
192-
"Authentication url %s is invalid", authURL));
191+
sysLogger.log(LOG_LEVEL_ERR, getClass().getName(),
192+
String.format(
193+
"Authentication url %s is invalid", authURL));
193194
return null;
194195
}
195196
}
196197
try {
197198
return new ConfigurableAuthService(c);
198199
} catch (IOException e) {
199200
startupFailed();
200-
sysLogger.logErr("Couldn't connect to authentication service at " +
201+
sysLogger.log(LOG_LEVEL_ERR, getClass().getName(),
202+
"Couldn't connect to authentication service at " +
201203
c.getAuthServerURL() + " : " + e.getLocalizedMessage());
202204
return null;
203205
}

0 commit comments

Comments
 (0)