Skip to content

Commit f0f971a

Browse files
author
jiangpeiling
committed
♻️ Refactor: cleanup console log.
1 parent 5a609d7 commit f0f971a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

frontend/utils/logger.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ const log = isProduction
1616
log: () => {},
1717
}
1818
: {
19-
debug: (message: string, ...args: any[]) => {
19+
debug: (message: any, ...args: any[]) => {
2020
console.debug(`[DEBUG] ${message}`, ...args);
2121
},
22-
info: (message: string, ...args: any[]) => {
22+
info: (message: any, ...args: any[]) => {
2323
console.info(`[INFO] ${message}`, ...args);
2424
},
25-
warn: (message: string, ...args: any[]) => {
25+
warn: (message: any, ...args: any[]) => {
2626
console.warn(`[WARN] ${message}`, ...args);
2727
},
28-
error: (message: string, ...args: any[]) => {
28+
error: (message: any, ...args: any[]) => {
2929
console.error(`[ERROR] ${message}`, ...args);
3030
},
31-
log: (message: string, ...args: any[]) => {
31+
log: (message: any, ...args: any[]) => {
3232
console.log(`[LOG] ${message}`, ...args);
3333
},
3434
};

0 commit comments

Comments
 (0)