We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b22c7d commit 8ae5c7bCopy full SHA for 8ae5c7b
packages/teams-js/src/internal/telemetry.ts
@@ -19,10 +19,11 @@ const createDebuggerFunction = (namespace: string): Debugger => {
19
20
// eslint-disable-next-line @typescript-eslint/no-explicit-any
21
const func = function (formatter: any, ...args: any[]): void {
22
- if (GlobalVars.turnOnConsoleLog) {
23
- internalDebugger(formatter, args);
24
- console.log(formatter, args);
+ if (GlobalVars.turnOnConsoleLog && localStorage.getItem('debug') != 'teamsJs.*') {
+ args.unshift(`color: ${internalDebugger.color}`);
+ console.log(`${internalDebugger.namespace}: ${formatter}`, args);
25
}
26
+ internalDebugger(formatter, args);
27
} as Debugger;
28
29
Object.assign(func, {
0 commit comments