mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 17:15:03 -07:00
Reduce production hot-path logging
This commit is contained in:
@@ -2576,6 +2576,10 @@ export class StratumV2Client {
|
||||
return;
|
||||
}
|
||||
|
||||
if (process.env.SV2_AUTH_FAILURE_LOG_ENABLED?.toLowerCase() !== 'true') {
|
||||
return;
|
||||
}
|
||||
|
||||
const remote = this.socket.remoteAddress ?? 'unknown';
|
||||
const key = `${remote}:${error.message}`;
|
||||
const now = Date.now();
|
||||
|
||||
Reference in New Issue
Block a user