fix(lint): fix linting error
This commit is contained in:
parent
51f37afb72
commit
096a435d56
|
@ -0,0 +1 @@
|
||||||
|
Add custom logging functionality (#2155)
|
|
@ -48,7 +48,7 @@ const FILETYPE_COLOR: Record<string, string> = {
|
||||||
const createLoggerFn = (level: LogLevel) => {
|
const createLoggerFn = (level: LogLevel) => {
|
||||||
// NOTE: Don't log time and debug in production
|
// NOTE: Don't log time and debug in production
|
||||||
if (level === 'time' || level === 'debug') {
|
if (level === 'time' || level === 'debug') {
|
||||||
if (import.meta.env.PROD) return () => { }
|
if (import.meta.env.PROD) return () => undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
return async (...args: any[]) => {
|
return async (...args: any[]) => {
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue