Skip to content

Commit

Permalink
Merge pull request blockscout#9596 from blockscout/np-logs-fix
Browse files Browse the repository at this point in the history
Improve logging
  • Loading branch information
vbaranov authored Mar 12, 2024
2 parents 1b8397c + ca85e73 commit 2b894ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

- [#9601](https://github.com/blockscout/blockscout/pull/9601) - Fix token instance transform for some unconventional tokens
- [#9597](https://github.com/blockscout/blockscout/pull/9597) - Update token transfers block_consensus by block_number
- [#9596](https://github.com/blockscout/blockscout/pull/9596) - Fix logging
- [#9572](https://github.com/blockscout/blockscout/pull/9572) - Fix Shibarium L1 fetcher
- [#9563](https://github.com/blockscout/blockscout/pull/9563) - Fix timestamp handler for unfinalized zkEVM batches
- [#9560](https://github.com/blockscout/blockscout/pull/9560) - Fix fetch pending transaction for hyperledger besu client
Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/lib/indexer/fetcher/block_reward.ex
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ defmodule Indexer.Fetcher.BlockReward do

defp fetched_beneficiary_error_to_iodata(%{code: code, message: message, data: %{block_quantity: block_quantity}})
when is_integer(code) and is_binary(message) and is_binary(block_quantity) do
["@", quantity_to_integer(block_quantity), ": (", to_string(code), ") ", message, ?\n]
["@", block_quantity |> quantity_to_integer() |> to_string(), ": (", to_string(code), ") ", message, ?\n]
end

defp defaults do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ defmodule Indexer.Fetcher.TokenInstance.MetadataRetriever do
check_content_type(content_type, uri, hex_token_id, body)

{:ok, %Response{body: body, status_code: code}} ->
Logger.warn(
Logger.debug(
["Request to token uri: #{inspect(uri)} failed with code #{code}. Body:", inspect(body)],
fetcher: :token_instances
)
Expand Down

0 comments on commit 2b894ba

Please sign in to comment.