Skip to content

Commit

Permalink
ref(node): Add log for running in ESM/CommonJS mode (#12134)
Browse files Browse the repository at this point in the history
To make debugging etc. easier for us in the future.
  • Loading branch information
mydea authored May 21, 2024
1 parent c8f1661 commit 344cd9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/node/src/sdk/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ function _init(
client.init();
}

logger.log(`Running in ${isCjs() ? 'CommonJS' : 'ESM'} mode.`);

if (options.autoSessionTracking) {
startSessionTracking();
}
Expand Down

0 comments on commit 344cd9d

Please sign in to comment.