fix(lint): fix linting error

2215-custom-logger-does-not-work-at-all-with-webkit-and-blink-based-browsers
Kasper Seweryn 2023-09-11 17:10:51 +02:00
rodzic b752808ae7
commit 6e54854d84
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -0,0 +1 @@
Add custom logging functionality (#2155)

Wyświetl plik

@ -48,7 +48,7 @@ const FILETYPE_COLOR: Record<string, string> = {
const createLoggerFn = (level: LogLevel) => {
// NOTE: Don't log time and debug in production
if (level === 'time' || level === 'debug') {
if (import.meta.env.PROD) return () => { }
if (import.meta.env.PROD) return () => undefined
}
return async (...args: any[]) => {