fix: error
This commit is contained in:
1 parent
78e4295ac5
commit
5cfacce885
2 files changed
+5
-5
No files matched your search
@@ -51,7 +51,6 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"express": "^5.0.0",
|
"express": "^5.0.0",
|
||||||
"fluent-ffmpeg": "^2.1.2",
|
"fluent-ffmpeg": "^2.1.2",
|
||||||
"log4js": "^6.9.1",
|
|
||||||
"qrcode-terminal": "^0.12.0",
|
"qrcode-terminal": "^0.12.0",
|
||||||
"silk-wasm": "^3.6.1",
|
"silk-wasm": "^3.6.1",
|
||||||
"ws": "^8.18.0"
|
"ws": "^8.18.0"
|
||||||
|
|||||||
+5
-4
@@ -110,14 +110,15 @@ export class LogWrapper {
|
|||||||
|
|
||||||
_log(level: LogLevel, ...args: any[]) {
|
_log(level: LogLevel, ...args: any[]) {
|
||||||
const message = this.formatMsg(args);
|
const message = this.formatMsg(args);
|
||||||
if (this.consoleLogEnabled) {
|
if (this.consoleLogEnabled && this.fileLogEnabled) {
|
||||||
this.logger.log(level, message);
|
this.logger.log(level, message);
|
||||||
}
|
} else if (this.consoleLogEnabled) {
|
||||||
if (this.fileLogEnabled) {
|
this.logger.log(level, message);
|
||||||
|
} else if (this.fileLogEnabled) {
|
||||||
this.logger.log(level, message.replace(/\x1B[@-_][0-?]*[ -/]*[@-~]/g, ''));
|
this.logger.log(level, message.replace(/\x1B[@-_][0-?]*[ -/]*[@-~]/g, ''));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
log(...args: any[]) {
|
log(...args: any[]) {
|
||||||
this._log(LogLevel.INFO, ...args);
|
this._log(LogLevel.INFO, ...args);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user