Skip to content

Commit

Permalink
fix: fix broken logger
Browse files Browse the repository at this point in the history
  • Loading branch information
ohoareau committed Sep 2, 2024
1 parent d94973c commit 2fe3501
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/rawLogger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export const rawLogger: raw_logger = ({
data: unknown;
error?: boolean;
}) => {
(type === 'message' && console[error ? 'error' : 'log']) ||
((..._: unknown[]) => {})(`[${group}] ${data}`);
type === 'message' &&
(error ? console.error : console.log)(`[${group}] ${data}`);
};

export default rawLogger;

0 comments on commit 2fe3501

Please sign in to comment.