Skip to content

Commit

Permalink
remove some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
nullpointer0x00 committed Oct 1, 2024
1 parent 1fa03da commit 454314e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -15,9 +14,7 @@ class FlowApiPriceFetcher(
private val flowApiGrpcClient: FlowApiGrpcClient
) : HistoricalPriceFetcher {

val logger = logger(FlowApiPriceFetcher::class)
override fun fetchHistoricalPrice(fromDate: DateTime?): List<HistoricalPrice> {
logger.info("fetching navs from $fromDate")
val onChainNavEvents = getMarkerNavByPriceDenoms(fromDate, 17800)
return onChainNavEvents.map { navEvent ->
val volumeHash = calculateVolumeHash(navEvent.volume)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class OsmosisPriceFetcher : HistoricalPriceFetcher {

val logger = logger(OsmosisPriceFetcher::class)
override fun fetchHistoricalPrice(fromDate: DateTime?): List<HistoricalPrice> {
logger.info("fetching osmosis prices from $fromDate")
val osmosisHistoricalPrices = fetchOsmosisData(fromDate)
return osmosisHistoricalPrices.map { osmosisPrice ->
HistoricalPrice(
Expand All @@ -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)
}
Expand Down

0 comments on commit 454314e

Please sign in to comment.