1
0
mirror of https://git.stamm.me/OpenServer/NodeLogging.git synced 2024-12-22 19:29:22 +00:00

Changing message event content

This commit is contained in:
Fabian Stamm 2018-10-23 20:56:43 +02:00
parent 8c97b66e43
commit a3130f8a89
4 changed files with 4 additions and 4 deletions

View File

@ -259,7 +259,7 @@ class LoggingBase {
if (this.logFile) {
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;

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "@hibas123/nodelogging",
"version": "1.3.18",
"version": "1.3.19",
"description": "",
"main": "out/index.js",
"types": "out/index.d.ts",

View File

@ -303,7 +303,7 @@ export class LoggingBase {
if (this.logFile) {
this.logFile.write(data);
}
this.events.emit("message", { type: type, message: mb });
this.events.emit("message", { type: type, message: data.toString("utf8") });
}
}