fix logging

This commit is contained in:
Iuri Matias 2019-11-08 18:07:16 -05:00
parent 340fbacdee
commit 5f94848d05
1 changed files with 2 additions and 2 deletions

View File

@ -92,9 +92,9 @@ Logger.prototype.registerAPICall = function (plugins) {
);
};
Logger.prototype.writeToFile = function (txt) {
Logger.prototype.writeToFile = function (_txt) {
if (this.debugLog) {
this.debugLog.log({parent_id: this.logId, type: "log_info", name: txt});
this.debugLog.log({parent_id: this.logId, type: "log_info", name: Array.from(arguments).join(' ')});
}
if (!this.logFile) {