Skip to content

Commit

Permalink
* optimize logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollon77 committed Jun 5, 2022
1 parent 8871a42 commit ff94e03
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1378,7 +1378,11 @@ function getHistory(msg) {
}, msg.callback);
}
} else if (cmd === 'debug') {
adapter.log.debug(`${options.logId} GetHistory fork: ${data.join(',')}`);
let line = data.slice(1).join(', ');
if (line.includes(options.logId)) {
line = line.replace(`${options.logId} `, '');
}
adapter.log.debug(`GetHistory fork: ${line}`);
}
});
} catch (err) {
Expand Down

0 comments on commit ff94e03

Please sign in to comment.