mirror of
https://github.com/mempool/mempool.git
synced 2025-03-03 17:47:01 +01:00
Change fiat conversion logs to DEBUG
This commit is contained in:
parent
6b2900345a
commit
4afeb3998a
1 changed files with 3 additions and 3 deletions
|
@ -54,11 +54,11 @@ class FiatConversion {
|
||||||
|
|
||||||
const agent = new SocksProxyAgent(socksOptions);
|
const agent = new SocksProxyAgent(socksOptions);
|
||||||
fiatConversionUrl = config.PRICE_DATA_SERVER.TOR_URL;
|
fiatConversionUrl = config.PRICE_DATA_SERVER.TOR_URL;
|
||||||
logger.info('Querying currency rates service...');
|
logger.debug('Querying currency rates service...');
|
||||||
response = await axios.get(fiatConversionUrl, { httpAgent: agent, headers: headers, timeout: 30000 });
|
response = await axios.get(fiatConversionUrl, { httpAgent: agent, headers: headers, timeout: 30000 });
|
||||||
} else {
|
} else {
|
||||||
fiatConversionUrl = config.PRICE_DATA_SERVER.CLEARNET_URL;
|
fiatConversionUrl = config.PRICE_DATA_SERVER.CLEARNET_URL;
|
||||||
logger.info('Querying currency rates service...');
|
logger.debug('Querying currency rates service...');
|
||||||
response = await axios.get(fiatConversionUrl, { headers: headers, timeout: 10000 });
|
response = await axios.get(fiatConversionUrl, { headers: headers, timeout: 10000 });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ class FiatConversion {
|
||||||
'USD': usd.price,
|
'USD': usd.price,
|
||||||
};
|
};
|
||||||
|
|
||||||
logger.info(`USD Conversion Rate: ${usd.price}`);
|
logger.debug(`USD Conversion Rate: ${usd.price}`);
|
||||||
|
|
||||||
if (this.ratesChangedCallback) {
|
if (this.ratesChangedCallback) {
|
||||||
this.ratesChangedCallback(this.conversionRates);
|
this.ratesChangedCallback(this.conversionRates);
|
||||||
|
|
Loading…
Add table
Reference in a new issue