Skip to content

Commit a225a43

Browse files
committed
user singleton directly
1 parent feca47c commit a225a43

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

packages/utils/src/logger.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,4 @@ function makeLogger(): Logger {
101101
* This is a logger singleton which either logs things or no-ops if logging is not enabled.
102102
* The logger is a singleton on the carrier, to ensure that a consistent logger is used throughout the SDK.
103103
*/
104-
export const logger: Logger = new Proxy(
105-
{},
106-
{
107-
get: (_target, prop: ConsoleLevel) => {
108-
const logger = getGlobalSingleton('logger', makeLogger);
109-
110-
return logger[prop];
111-
},
112-
},
113-
) as Logger;
104+
export const logger = getGlobalSingleton('logger', makeLogger);

0 commit comments

Comments
 (0)