fix: error
This commit is contained in:
1 parent
3e1f566699
commit
2c398a6832
2 files changed
+4
-4
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"
|
||||||
|
|||||||
+4
-3
@@ -110,10 +110,11 @@ 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, ''));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user