Faucet.refill: only log when logging is enabled

This commit is contained in:
Simon Warta 2020-02-10 18:15:49 +01:00
parent 357fc3577e
commit b7ca6da1bf

View File

@ -146,7 +146,7 @@ export class Faucet {
}
if (jobs.length > 0) {
for (const job of jobs) {
logSendJob(job);
if (this.logging) logSendJob(job);
await this.send(job);
await sleep(50);
}