Log errors on fact processors
This commit is contained in:
parent
0c0c7f1230
commit
d24dc4726b
@ -14,6 +14,7 @@ defmodule LolAnalytics.Facts.ChampionPickedItem.FactProcessor do
|
||||
{:ok, decoded_match} <- Poison.decode(body, as: %LoLAPI.Model.MatchResponse{}) do
|
||||
process_game_data(decoded_match)
|
||||
else
|
||||
Logger.error("Could not process data from #{url} for ChampionPickedItem")
|
||||
_ -> {:error, "Could not process data from #{url}"}
|
||||
end
|
||||
end
|
||||
|
@ -13,7 +13,9 @@ defmodule LolAnalytics.Facts.ChampionPickedSummonerSpell.FactProcessor do
|
||||
{:ok, decoded_match} <- Poison.decode(body, as: %LoLAPI.Model.MatchResponse{}) do
|
||||
process_game_data(decoded_match)
|
||||
else
|
||||
_ -> {:error, "Could not process data from #{url}"}
|
||||
_ ->
|
||||
Logger.error("Could not process data from #{url} for ChampionPickedSummonerSpell")
|
||||
{:error, "Could not process data from #{url}"}
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -11,7 +11,9 @@ defmodule LolAnalytics.Facts.ChampionPlayedGame.FactProcessor do
|
||||
{:ok, decoded_match} <- Poison.decode(body, as: %LoLAPI.Model.MatchResponse{}) do
|
||||
process_game_data(decoded_match)
|
||||
else
|
||||
_ -> {:error, "Could not process data from #{url}"}
|
||||
_ ->
|
||||
Logger.error("Could not process data from #{url} for ChampionPlayedGame")
|
||||
{:error, "Could not process data from #{url}"}
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user