File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
apps/explorer/lib/explorer/market/history Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,8 @@ defmodule Explorer.Market.History.Cataloger do
151151 end
152152
153153 defp market_cap_history ( records , state ) do
154+ require Logger
155+ Logger . info ( "inserting market records into db" )
154156 Market . bulk_insert_history ( records )
155157
156158 # Schedule next check for history
Original file line number Diff line number Diff line change @@ -13,8 +13,13 @@ defmodule Explorer.Market.History.Source.Price.CoinGecko do
1313 @ impl SourcePrice
1414 def fetch_price_history ( previous_days ) do
1515 url = ExchangeRatesSourceCoinGecko . history_url ( previous_days )
16+ r = Source . http_request ( url , ExchangeRatesSourceCoinGecko . headers ( ) )
1617
17- case Source . http_request ( url , ExchangeRatesSourceCoinGecko . headers ( ) ) do
18+ require Logger
19+ Logger . info ( "fetching price history: #{ inspect ( url ) } with headers: #{ inspect ( ExchangeRatesSourceCoinGecko . headers ( ) ) } " )
20+ Logger . info ( "result: #{ inspect ( r ) } " )
21+
22+ case r do
1823 { :ok , data } ->
1924 result =
2025 data
You can’t perform that action at this time.
0 commit comments