Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
AE-MS committed Sep 24, 2024
1 parent b1d9ee4 commit 31091e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/teams-js/src/internal/telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import { UUID } from './uuidObject';
export const teamsJsInstanceIdentifier = new UUID();

// Every log statement will get prepended with the teamsJsInstanceIdentifier and a timestamp
const origFormatArgs = registerLogger.formatArgs;
const originalFormatArgsFunction = registerLogger.formatArgs;
registerLogger.formatArgs = function (args) {
args[0] = `(${new Date().toISOString()}): ${args[0]} [${teamsJsInstanceIdentifier.toString()}]`;
origFormatArgs.call(this, args);
originalFormatArgsFunction.call(this, args);
};

const topLevelLogger = registerLogger('teamsJs');
Expand Down

0 comments on commit 31091e5

Please sign in to comment.