Skip to content

Commit

Permalink
chore: use correct logger methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Harasz committed Jul 8, 2022
1 parent fe3eec7 commit 862740b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/cache-client/cache-client.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ export class CacheClient implements ICacheClient {
tokens = undefined;
}
} catch {
getLogger().error('[CACHE CLIENT] failed to refresh tokens');
getLogger().warn('[CACHE CLIENT] failed to refresh tokens');
}

// If refresh token failed or access token is not valid, then sign new identity token
if (!tokens) {
getLogger().error('[CACHE CLIENT] obtaining new tokens');
getLogger().info('[CACHE CLIENT] obtaining new tokens');
delete this._httpClient.defaults.headers.common['Authorization'];
const pubKeyAndIdentityToken =
await this._signerService.publicKeyAndIdentityToken(true);
Expand Down Expand Up @@ -669,7 +669,7 @@ export class CacheClient implements ICacheClient {

private async refreshToken(): Promise<AuthTokens | undefined> {
if (!this.refresh_token) return undefined;
getLogger().debug('[CACHE CLIENT] refreshing tokens');
getLogger().info('[CACHE CLIENT] refreshing tokens');
const { data } = await this._httpClient.get<{
token: string;
refreshToken: string;
Expand Down

0 comments on commit 862740b

Please sign in to comment.