mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-03-18 05:41:43 +01:00
disconnect log
This commit is contained in:
parent
5dd1fa3dfa
commit
4f507b9aac
@ -69,7 +69,11 @@ export class StratumV1Service implements OnModuleInit {
|
||||
|
||||
const clientCount = await this.clientService.connectedClientCount();
|
||||
|
||||
|
||||
|
||||
console.log(`Client disconnected: ${promiseSocket.socket.remoteAddress}, ${client.extraNonceAndSessionId}, ${clientCount} total clients`);
|
||||
|
||||
console.log(error);
|
||||
});
|
||||
|
||||
promiseSocket.socket.on('error', async (error: Error) => {
|
||||
@ -81,6 +85,8 @@ export class StratumV1Service implements OnModuleInit {
|
||||
const clientCount = await this.clientService.connectedClientCount();
|
||||
console.log(`Client disconnected, socket error: ${promiseSocket.socket.remoteAddress}, ${client.extraNonceAndSessionId}, ${clientCount} total clients`);
|
||||
|
||||
console.log(error);
|
||||
|
||||
});
|
||||
|
||||
}).listen(3333, () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user