From 5ad581d6f5bcd19e2d12f1028dc8bac6a5327527 Mon Sep 17 00:00:00 2001 From: Ben Wilson Date: Mon, 7 Aug 2023 22:19:36 -0400 Subject: [PATCH] remove some logging --- src/models/StratumV1Client.ts | 4 ++-- src/services/stratum-v1.service.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/models/StratumV1Client.ts b/src/models/StratumV1Client.ts index f173cda..0aab5c8 100644 --- a/src/models/StratumV1Client.ts +++ b/src/models/StratumV1Client.ts @@ -394,7 +394,7 @@ export class StratumV1Client { } - console.log(`Sent new job to ${this.clientAuthorization.worker}.${this.extraNonceAndSessionId}. (clearJobs: ${jobTemplate.blockData.clearJobs}, fee?: ${!this.noFee})`) + //console.log(`Sent new job to ${this.clientAuthorization.worker}.${this.extraNonceAndSessionId}. (clearJobs: ${jobTemplate.blockData.clearJobs}, fee?: ${!this.noFee})`) } @@ -421,7 +421,7 @@ export class StratumV1Client { submission.id, eStratumErrorCode.JobNotFound, 'Job not found').response(); - console.log(err); + //console.log(err); const success = await this.write(err); if (!success) { return false; diff --git a/src/services/stratum-v1.service.ts b/src/services/stratum-v1.service.ts index e47a2a3..0a27779 100644 --- a/src/services/stratum-v1.service.ts +++ b/src/services/stratum-v1.service.ts @@ -63,6 +63,7 @@ export class StratumV1Service implements OnModuleInit { await client.destroy(); console.log(`Client disconnected, ${client.extraNonceAndSessionId}`); } + }); socket.on('error', async (error: Error) => {