Skip to content

Commit 559701e

Browse files
committed
change to use debug log for all info calls
1 parent a66ced9 commit 559701e

31 files changed

Lines changed: 182 additions & 182 deletions

‎sample/public/oidc-client-sample-callback.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<script src='oidc-client.js'></script>
1414
<script>
1515
Oidc.Log.logger = console;
16-
Oidc.Log.level = Oidc.Log.INFO;
16+
Oidc.Log.level = Oidc.Log.DEBUG;
1717
new Oidc.OidcClient().processSigninResponse().then(function(response) {
1818
log("signin response success", response);
1919
}).catch(function(err) {

‎sample/public/oidc-client-sample.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ document.getElementById('links').addEventListener('change', toggleLinks, false);
1515
// OidcClient config
1616
///////////////////////////////
1717
Oidc.Log.logger = console;
18-
Oidc.Log.level = Oidc.Log.INFO;
18+
Oidc.Log.level = Oidc.Log.DEBUG;
1919

2020
var settings = {
2121
authority: 'http://localhost:5000/oidc',

‎sample/public/user-manager-sample-callback.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<script src='oidc-client.js'></script>
1414
<script>
1515
Oidc.Log.logger = console;
16-
Oidc.Log.level = Oidc.Log.INFO;
16+
Oidc.Log.level = Oidc.Log.DEBUG;
1717
new Oidc.UserManager().signinRedirectCallback().then(function(user) {
1818
log("signin response success", user);
1919
}).catch(function(err) {

‎sample/public/user-manager-sample-popup.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<script src='oidc-client.js'></script>
1111
<script>
1212
Oidc.Log.logger = console;
13-
Oidc.Log.level = Oidc.Log.INFO;
13+
Oidc.Log.level = Oidc.Log.DEBUG;
1414
new Oidc.UserManager().signinPopupCallback();
1515
</script>
1616
</body>

‎sample/public/user-manager-sample-silent.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<script src='oidc-client.js'></script>
1111
<script>
1212
Oidc.Log.logger = console;
13-
Oidc.Log.level = Oidc.Log.INFO;
13+
Oidc.Log.level = Oidc.Log.DEBUG;
1414
new Oidc.UserManager().signinSilentCallback();
1515
</script>
1616
</body>

‎sample/public/user-manager-sample.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ document.getElementById('endSignoutMainWindow').addEventListener("click", endSig
2222
// config
2323
///////////////////////////////
2424
Oidc.Log.logger = console;
25-
Oidc.Log.level = Oidc.Log.INFO;
25+
Oidc.Log.level = Oidc.Log.DEBUG;
2626

2727
var settings = {
2828
authority: 'http://localhost:5000/oidc',

‎src/AccessTokenEvents.js‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,39 +20,39 @@ export default class AccessTokenEvents {
2020
}
2121

2222
load(container) {
23-
Log.info("AccessTokenEvents.load");
23+
Log.debug("AccessTokenEvents.load");
2424

2525
this._cancelTimers();
2626

2727
// only register events if there's an access token where we care about expiration
2828
if (container.access_token) {
2929
let duration = container.expires_in;
30-
Log.info("access token present, remaining duration:", duration);
30+
Log.debug("access token present, remaining duration:", duration);
3131

3232
if (duration > 0) {
3333
// only register expiring if we still have time
3434
let expiring = duration - this._accessTokenExpiringNotificationTime;
3535
if (expiring <= 0){
3636
expiring = 1;
3737
}
38-
Log.info("registering expiring timer in:", expiring);
38+
Log.debug("registering expiring timer in:", expiring);
3939
this._accessTokenExpiring.init(expiring);
4040
}
4141

4242
// always register expired. if it's negative, it will still fire
4343
let expired = duration + 1;
44-
Log.info("registering expired timer in:", expired);
44+
Log.debug("registering expired timer in:", expired);
4545
this._accessTokenExpired.init(expired);
4646
}
4747
}
4848

4949
unload() {
50-
Log.info("AccessTokenEvents.unload");
50+
Log.debug("AccessTokenEvents.unload");
5151
this._cancelTimers();
5252
}
5353

5454
_cancelTimers(){
55-
Log.info("canceling existing access token timers");
55+
Log.debug("canceling existing access token timers");
5656
this._accessTokenExpiring.cancel();
5757
this._accessTokenExpired.cancel();
5858
}

‎src/CheckSessionIFrame.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,19 @@ export default class CheckSessionIFrame {
3333
this.stop();
3434
}
3535
else if (e.data === "changed"){
36-
Log.info("changed message from check session op iframe");
36+
Log.debug("changed message from check session op iframe");
3737
this.stop();
3838
this._callback();
3939
}
4040
else {
41-
Log.info(e.data + " message from check session op iframe");
41+
Log.debug(e.data + " message from check session op iframe");
4242
}
4343
}
4444
}
4545

4646
start(session_state) {
4747
if (this._session_state !== session_state) {
48-
Log.info("CheckSessionIFrame.start");
48+
Log.debug("CheckSessionIFrame.start");
4949

5050
this.stop();
5151

@@ -58,7 +58,7 @@ export default class CheckSessionIFrame {
5858
}
5959

6060
stop() {
61-
Log.info("CheckSessionIFrame.stop");
61+
Log.debug("CheckSessionIFrame.stop");
6262

6363
this._session_state = null;
6464

‎src/CordovaPopupWindow.js‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const DefaultPopupTarget = "_blank";
99
export default class CordovaPopupWindow {
1010

1111
constructor(params) {
12-
Log.info("CordovaPopupWindow.ctor");
12+
Log.debug("CordovaPopupWindow.ctor");
1313

1414
this._promise = new Promise((resolve, reject) => {
1515
this._resolve = resolve;
@@ -20,7 +20,7 @@ export default class CordovaPopupWindow {
2020
this.target = params.popupWindowTarget || DefaultPopupTarget;
2121

2222
this.redirect_uri = params.startUrl;
23-
Log.info("redirect_uri: " + this.redirect_uri);
23+
Log.debug("redirect_uri: " + this.redirect_uri);
2424
}
2525

2626
_isInAppBrowserInstalled(cordovaMetadata) {
@@ -30,7 +30,7 @@ export default class CordovaPopupWindow {
3030
}
3131

3232
navigate(params) {
33-
Log.info("CordovaPopupWindow.navigate");
33+
Log.debug("CordovaPopupWindow.navigate");
3434

3535
if (!params || !params.url) {
3636
this._error("No url provided");
@@ -45,7 +45,7 @@ export default class CordovaPopupWindow {
4545
}
4646
this._popup = cordova.InAppBrowser.open(params.url, this.target, this.features);
4747
if (this._popup) {
48-
Log.info("popup successfully created");
48+
Log.debug("popup successfully created");
4949

5050
this._exitCallbackEvent = this._exitCallback.bind(this);
5151
this._loadStartCallbackEvent = this._loadStartCallback.bind(this);
@@ -75,7 +75,7 @@ export default class CordovaPopupWindow {
7575
_success(data) {
7676
this._cleanup();
7777

78-
Log.info("Successful response from cordova popup window");
78+
Log.debug("Successful response from cordova popup window");
7979
this._resolve(data);
8080
}
8181
_error(message) {
@@ -86,7 +86,7 @@ export default class CordovaPopupWindow {
8686
}
8787

8888
_cleanup() {
89-
Log.info("CordovaPopupWindow._cleanup");
89+
Log.debug("CordovaPopupWindow._cleanup");
9090

9191
if (this._popup){
9292
this._popup.removeEventListener("exit", this._exitCallbackEvent, false);

‎src/Event.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default class Event {
2222
}
2323

2424
raise(...params) {
25-
Log.info("Raising event: " + this._name);
25+
Log.debug("Raising event: " + this._name);
2626
for (var cb of this._callbacks) {
2727
cb(...params);
2828
}

0 commit comments

Comments
 (0)