Changing message event content
This commit is contained in:
parent
8c97b66e43
commit
a3130f8a89
@ -259,7 +259,7 @@ class LoggingBase {
|
|||||||
if (this.logFile) {
|
if (this.logFile) {
|
||||||
this.logFile.write(data);
|
this.logFile.write(data);
|
||||||
}
|
}
|
||||||
this.events.emit("message", { type: type, message: mb });
|
this.events.emit("message", { type: type, message: data.toString("utf8") });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
exports.LoggingBase = LoggingBase;
|
exports.LoggingBase = LoggingBase;
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hibas123/nodelogging",
|
"name": "@hibas123/nodelogging",
|
||||||
"version": "1.3.18",
|
"version": "1.3.19",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "out/index.js",
|
"main": "out/index.js",
|
||||||
"types": "out/index.d.ts",
|
"types": "out/index.d.ts",
|
||||||
|
@ -303,7 +303,7 @@ export class LoggingBase {
|
|||||||
if (this.logFile) {
|
if (this.logFile) {
|
||||||
this.logFile.write(data);
|
this.logFile.write(data);
|
||||||
}
|
}
|
||||||
this.events.emit("message", { type: type, message: mb });
|
this.events.emit("message", { type: type, message: data.toString("utf8") });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user