mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
logging
This commit is contained in:
@@ -229,13 +229,12 @@ export class StratumV1Client {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.error('Authorization validation error');
|
|
||||||
const err = new StratumErrorMessage(
|
const err = new StratumErrorMessage(
|
||||||
authorizationMessage.id,
|
authorizationMessage.id,
|
||||||
eStratumErrorCode.OtherUnknown,
|
eStratumErrorCode.OtherUnknown,
|
||||||
'Authorization validation error',
|
'Authorization validation error',
|
||||||
errors).response();
|
errors).response();
|
||||||
console.error(err);
|
console.log(err);
|
||||||
const success = await this.write(err);
|
const success = await this.write(err);
|
||||||
if (!success) {
|
if (!success) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ export class BitcoinRpcService implements OnModuleInit {
|
|||||||
console.log('ZMQ Connected');
|
console.log('ZMQ Connected');
|
||||||
});
|
});
|
||||||
sock.events.on('connect:retry', () => {
|
sock.events.on('connect:retry', () => {
|
||||||
console.log('ZMQ Unable to connect, Retrying');
|
console.error('ZMQ Unable to connect, Retrying');
|
||||||
});
|
});
|
||||||
|
|
||||||
sock.connect(this.configService.get('BITCOIN_ZMQ_HOST'));
|
sock.connect(this.configService.get('BITCOIN_ZMQ_HOST'));
|
||||||
|
|||||||
Reference in New Issue
Block a user