diff --git a/src/server.tsx b/src/server.tsx index 660c73d..a82b53a 100644 --- a/src/server.tsx +++ b/src/server.tsx @@ -168,6 +168,8 @@ async function fetchMempoolFees() : Promise { } const results = await Promise.allSettled(tasks); + logger.debug({ message: 'Fetched data from mempool: {results}', results }); + let res0 = getValueFromFulfilledPromise(results[0]); let res1 = getValueFromFulfilledPromise(results[1]); @@ -182,7 +184,7 @@ async function fetchMempoolFees() : Promise { } else { data = isRes1Invalid ? null : res1; } - logger.debug({ message: 'Fetched data from mempool: {data}', data }); + logger.info({ message: 'Got data from mempool: {data}', data }); return data; } @@ -198,11 +200,13 @@ async function fetchEsploraFees() : Promise { return null; } const results = await Promise.allSettled(tasks); + logger.debug({ message: 'Fetched data from mempool: {results}', results }); + let res0 = getValueFromFulfilledPromise(results[0]); let res1 = getValueFromFulfilledPromise(results[1]); const data: FeeByBlockTarget = res0 || res1 || null; - logger.debug({ message: 'Fetched data from esplora: {data}', data }); + logger.info({ message: 'Got data from esplora: {data}', data }); return data; } @@ -257,7 +261,7 @@ async function fetchBitcoindFees() : Promise { errors: response[i].result?.errors}); } }); - logger.debug({ message: 'Fetched data from bitcoind: {data}', data }); + logger.info({ message: 'Got data from bitcoind: {data}', data }); resolve(data); } });