Skip to content

Commit

Permalink
reduce error levels
Browse files Browse the repository at this point in the history
  • Loading branch information
benleb committed Sep 21, 2022
1 parent 3c08d5d commit dc044ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/external/erc1155metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ func GetERC1155MetadataForURI(url string, tokenID *big.Int) (*ERC1155Metadata, e
url = strings.Replace(url, "ipfs://", viper.GetString("ipfs.gateway"), 1)
url = strings.Replace(url, "{id}", tokenID.String(), -1)

gbl.Log.Infof("erc1155 metadata url: %+v", url)
gbl.Log.Debugf("erc1155 metadata url: %+v", url)

client, _ := newClient()
request, _ := http.NewRequest("GET", url, nil)

response, err := client.Do(request)
if err != nil {
if os.IsTimeout(err) {
gbl.Log.Warnf("⌛️ timeout while fetching erc1155 metadata: %+v", err.Error())
gbl.Log.Debugf("⌛️ timeout while fetching erc1155 metadata: %+v", err.Error())
} else {
gbl.Log.Errorf("❌ erc1155 metadata error: %+v", err.Error())
gbl.Log.Warnf("❌ erc1155 metadata error: %+v", err.Error())
}

return nil, err
Expand Down

0 comments on commit dc044ae

Please sign in to comment.