[prices] only print "latest avg price from exchanges" upon success

This commit is contained in:
nymkappa
2025-08-07 19:19:13 +02:00
parent a20d383664
commit 62dd1ca1db
2 changed files with 2 additions and 3 deletions

View File

@@ -271,7 +271,6 @@ class PriceUpdater {
}
this.latestPrices.time = Math.round(new Date().getTime() / 1000);
logger.info(`Latest BTC fiat averaged price: ${JSON.stringify(this.latestPrices)}`);
if (!forceUpdate) {
this.cyclePosition++;
@@ -280,6 +279,8 @@ class PriceUpdater {
if (this.latestPrices.USD === -1) {
this.latestPrices = await PricesRepository.$getLatestConversionRates();
logger.warn(`No BTC price available, falling back to latest known price: ${JSON.stringify(this.latestPrices)}`);
} else {
logger.info(`Latest BTC fiat averaged price: ${JSON.stringify(this.latestPrices)}`);
}
if (this.ratesChangedCallback && this.latestPrices.USD > 0) {

View File

@@ -7,8 +7,6 @@ import { MempoolBlockViewComponent } from '@components/mempool-block-view/mempoo
import { ClockComponent } from '@components/clock/clock.component';
import { StatusViewComponent } from '@components/status-view/status-view.component';
import { AddressGroupComponent } from '@components/address-group/address-group.component';
import { TrackerComponent } from '@components/tracker/tracker.component';
import { AccelerateCheckout } from '@components/accelerate-checkout/accelerate-checkout.component';
import { TrackerGuard } from '@app/route-guards';
const browserWindow = window || {};