Merge branch 'master' into mononaut/fast-forensics

This commit is contained in:
wiz
2023-11-13 14:24:08 +09:00
committed by GitHub
4 changed files with 32 additions and 53 deletions

View File

@@ -184,7 +184,8 @@ class FailoverRouter {
.catch((e) => {
let fallbackHost = this.fallbackHost;
if (e?.response?.status !== 404) {
logger.warn(`esplora request failed ${e?.response?.status || 500} ${host.host}${path}`);
logger.warn(`esplora request failed ${e?.response?.status} ${host.host}${path}`);
logger.warn(e instanceof Error ? e.message : e);
fallbackHost = this.addFailure(host);
}
if (retry && e?.code === 'ECONNREFUSED' && this.multihost) {