mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
fix: error
This commit is contained in:
parent
3e1f566699
commit
2c398a6832
@ -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"
|
||||||
|
@ -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, ''));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user