Skip to content

Commit

Permalink
* specify read/writeFile encodings
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollon77 committed Jun 5, 2022
1 parent 3a7ab5e commit 8871a42
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1336,12 +1336,6 @@ function getHistory(msg) {
}, msg.callback);
});

if (options.debugLog && gh.stdout) {
gh.on('debug', (...args) => {
adapter.log.debug(`${options.logId} GetHistory fork: ${args && args.join(',')}`);
});
}

gh.on('message', data => {
const cmd = data[0];
if (cmd === 'getCache') {
Expand Down Expand Up @@ -1383,6 +1377,8 @@ function getHistory(msg) {
error: null
}, msg.callback);
}
} else if (cmd === 'debug') {
adapter.log.debug(`${options.logId} GetHistory fork: ${data.join(',')}`);
}
});
} catch (err) {
Expand Down

0 comments on commit 8871a42

Please sign in to comment.