Skip to content

Commit 7d4e4d2

Browse files
committed
add log module in
1 parent 1303e95 commit 7d4e4d2

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎src/JsonService.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import Log from './Log';
12
import XMLHttpRequestFactory from './XMLHttpRequestFactory';
23

34
export default class JsonService {
@@ -21,11 +22,13 @@ export default class JsonService {
2122
resolve(JSON.parse(req.response));
2223
}
2324
else {
25+
Log.error("getJson request failed with status" + req.status + " for url " + url);
2426
reject(Error(req.statusText + " (" + req.status + ")"));
2527
}
2628
};
2729

2830
req.onerror = function() {
31+
Log.error("getJson failed with network error");
2932
reject(Error("Network Error"));
3033
};
3134

‎src/OidcClientService.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import Log from './Log';
12
import OidcClientSettings from './OidcClientSettings';
23

34
export default class OidcClientService {

‎src/TokenValidator.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import Log from './Log';
2+
13
export default class TokenValidator {
24

35
// OidcClient.prototype.validateIdTokenAsync = function (id_token, nonce, access_token) {

0 commit comments

Comments
 (0)