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 730ac46 commit 5cb1786Copy full SHA for 5cb1786
src/Logger.ts
@@ -1,6 +1,7 @@
1
export type LogInfo = {
2
code: string;
3
message: string;
4
+ error?: any;
5
};
6
7
const disabledLogs: {
@@ -20,7 +21,7 @@ export function logMessage(type: string, info: LogInfo): void {
20
21
break;
22
case 'error':
23
if (!disabledLogs.errors) {
- console.log(`%c${info.code}:%c ${info.message}`, 'background: red; color: white', 'color: red');
24
+ console.error(`%c${info.code}:%c ${info.message}`, info.error || '');
25
}
26
27
default:
0 commit comments