mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-29 09:44:47 +00:00
fix: ts
This commit is contained in:
@@ -92,9 +92,9 @@ export const sseResponse = ({
|
||||
/* add logger */
|
||||
export const addLog = {
|
||||
info: (msg: string, obj?: Record<string, any>) => {
|
||||
global.logger.info(msg, { meta: obj });
|
||||
global.logger?.info(msg, { meta: obj });
|
||||
},
|
||||
error: (msg: string, obj?: Record<string, any>) => {
|
||||
global.logger.error(msg, { meta: obj });
|
||||
global.logger?.error(msg, { meta: obj });
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user