Skip to content

Commit

Permalink
FFM-9778 Use Logger interface instead of console (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
erdirowlands authored Oct 30, 2023
1 parent b8c7f8a commit 6406eb4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@harnessio/ff-nodejs-server-sdk",
"version": "1.3.5",
"version": "1.3.6",
"description": "Feature flags SDK for NodeJS environments",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.mjs",
Expand Down
4 changes: 2 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export default class Client {

if (!decoded.environment) {
this.failure = true;
console.error(
this.log.error(
'Error while authenticating, err: the JWT token has missing claim "environmentUUID" ',
);
}
Expand All @@ -233,7 +233,7 @@ export default class Client {
this.cluster = decoded.clusterIdentifier || '1';
} catch (error) {
this.failure = true;
console.error('Error while authenticating, err: ', error);
this.log.error('Error while authenticating, err: ', error);
warnAuthFailedSrvDefaults(this.log);
warnFailedInitAuthError(this.log);
this.eventBus.emit(Event.FAILED, error);
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = "1.3.5";
export const VERSION = '1.3.6';

0 comments on commit 6406eb4

Please sign in to comment.