We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e7213b commit 0fe5ba2Copy full SHA for 0fe5ba2
src/util/logger.util.ts
@@ -20,19 +20,19 @@ export const errorLogger = (
20
): void => {
21
// eslint-disable-next-line no-console
22
console.error(
23
- `${config?.apiKey ? anonymizeKey(config.apiKey) : ""}: ${message}`,
+ `${config?.apiKey ? `[${anonymizeKey(config.apiKey)}]` : ""}: ${message}`,
24
args && args.length ? args : ""
25
);
26
};
27
28
export const warnLogger = (
29
- { apiKey }: Config,
+ config: Config | undefined,
30
message: string,
31
...args: unknown[]
32
33
34
console.warn(
35
- `${anonymizeKey(apiKey)}: ${message}`,
36
37
38
0 commit comments