From 454314e114640a7a890943ac4a9cba4fdc725036 Mon Sep 17 00:00:00 2001 From: Carlton N Hanna Date: Tue, 1 Oct 2024 13:29:37 -0600 Subject: [PATCH] remove some logging --- .../explorer/service/pricing/fetchers/FlowApiPriceFetcher.kt | 3 --- .../explorer/service/pricing/fetchers/OsmosisPriceFetcher.kt | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/service/src/main/kotlin/io/provenance/explorer/service/pricing/fetchers/FlowApiPriceFetcher.kt b/service/src/main/kotlin/io/provenance/explorer/service/pricing/fetchers/FlowApiPriceFetcher.kt index 8d34733d..c437bd77 100644 --- a/service/src/main/kotlin/io/provenance/explorer/service/pricing/fetchers/FlowApiPriceFetcher.kt +++ b/service/src/main/kotlin/io/provenance/explorer/service/pricing/fetchers/FlowApiPriceFetcher.kt @@ -1,7 +1,6 @@ package io.provenance.explorer.service.pricing.fetchers import io.provenance.explorer.config.ExplorerProperties -import io.provenance.explorer.domain.core.logger import io.provenance.explorer.domain.models.HistoricalPrice import io.provenance.explorer.grpc.flow.FlowApiGrpcClient import io.provlabs.flow.api.NavEvent @@ -15,9 +14,7 @@ class FlowApiPriceFetcher( private val flowApiGrpcClient: FlowApiGrpcClient ) : HistoricalPriceFetcher { - val logger = logger(FlowApiPriceFetcher::class) override fun fetchHistoricalPrice(fromDate: DateTime?): List { - logger.info("fetching navs from $fromDate") val onChainNavEvents = getMarkerNavByPriceDenoms(fromDate, 17800) return onChainNavEvents.map { navEvent -> val volumeHash = calculateVolumeHash(navEvent.volume) diff --git a/service/src/main/kotlin/io/provenance/explorer/service/pricing/fetchers/OsmosisPriceFetcher.kt b/service/src/main/kotlin/io/provenance/explorer/service/pricing/fetchers/OsmosisPriceFetcher.kt index e159a74d..52d40faf 100644 --- a/service/src/main/kotlin/io/provenance/explorer/service/pricing/fetchers/OsmosisPriceFetcher.kt +++ b/service/src/main/kotlin/io/provenance/explorer/service/pricing/fetchers/OsmosisPriceFetcher.kt @@ -22,7 +22,6 @@ class OsmosisPriceFetcher : HistoricalPriceFetcher { val logger = logger(OsmosisPriceFetcher::class) override fun fetchHistoricalPrice(fromDate: DateTime?): List { - logger.info("fetching osmosis prices from $fromDate") val osmosisHistoricalPrices = fetchOsmosisData(fromDate) return osmosisHistoricalPrices.map { osmosisPrice -> HistoricalPrice( @@ -40,7 +39,7 @@ class OsmosisPriceFetcher : HistoricalPriceFetcher { val input = buildInputQuery(fromDate, determineTimeFrame(fromDate)) try { val url = """https://app.osmosis.zone/api/edge-trpc-assets/assets.getAssetHistoricalPrice?input=$input""" - logger.info("Calling $url with fromDate $fromDate") + logger.debug("Calling $url with fromDate $fromDate") val response: HttpResponse = KTOR_CLIENT_JAVA.get(url) { accept(ContentType.Application.Json) }