Reduce production hot-path logging

This commit is contained in:
Ben
2026-07-11 23:52:38 -04:00
parent 4f29269fed
commit bc6f2eebd8
6 changed files with 66 additions and 4 deletions
+4
View File
@@ -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();