From 2e0b66577d69336ddf406fd72873aae8c09795e7 Mon Sep 17 00:00:00 2001 From: Ben Wilson Date: Tue, 8 Aug 2023 19:39:16 -0400 Subject: [PATCH] logging --- src/models/StratumV1Client.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/models/StratumV1Client.ts b/src/models/StratumV1Client.ts index 785af6a..3f871af 100644 --- a/src/models/StratumV1Client.ts +++ b/src/models/StratumV1Client.ts @@ -521,7 +521,7 @@ export class StratumV1Client { } if (targetDiff != this.sessionDifficulty) { - console.log(`Adjusting ${this.extraNonceAndSessionId} difficulty from ${this.sessionDifficulty} to ${targetDiff}`); + //console.log(`Adjusting ${this.extraNonceAndSessionId} difficulty from ${this.sessionDifficulty} to ${targetDiff}`); this.sessionDifficulty = targetDiff; const data = JSON.stringify({ @@ -572,7 +572,6 @@ export class StratumV1Client { if (error) { reject(error); } else { - resolve(true); } }); @@ -580,7 +579,7 @@ export class StratumV1Client { return true; } else { - console.error(`Error: Cannot write to closed or ended socket. ${this.extraNonceAndSessionId}`); + console.error(`Error: Cannot write to closed or ended socket. ${this.extraNonceAndSessionId} ${message}`); this.destroy(); return false; }