Skip to content

Commit

Permalink
Improved debug logs for auth utils (#9015)
Browse files Browse the repository at this point in the history
no issue

- reduce the debug logs
- it's okay to log the old token to delete, because this token is getting removed anyway
  • Loading branch information
kirrg001 authored and ErisDS committed Sep 18, 2017
1 parent 7b4c3fc commit abb84d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/server/auth/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var Promise = require('bluebird'),
* This access token auto expires and get's cleaned up on bootstrap (see oauth.js).
*/
_private.decreaseOldAccessTokenExpiry = function decreaseOldAccessTokenExpiry(data, options) {
debug('decreaseOldAccessTokenExpiry', data, options);
debug('decreaseOldAccessTokenExpiry', data);

if (!data.token) {
return Promise.resolve();
Expand All @@ -32,7 +32,7 @@ _private.decreaseOldAccessTokenExpiry = function decreaseOldAccessTokenExpiry(da
};

_private.destroyOldRefreshToken = function destroyOldRefreshToken(options) {
debug('destroyOldRefreshToken', options);
debug('destroyOldRefreshToken', options.token);

if (!options.token) {
return Promise.resolve();
Expand Down

0 comments on commit abb84d0

Please sign in to comment.