Closed perrycate closed 1 year ago
Do we want to do any fancy logging here or just IO.puts whatever comes out? Open to any option really, clear errors during fetching will be really valuable.
I'm not super familiar with the logging options elixir gives us out of the box, so if you have any suggestions I'd love to hear them. Otherwise let's just do IO.puts to stderr - it's not like we have comprehensive logging elsewhere anyway. :man_shrugging:
Oh and we should exit when we do so as well, so that it's considered a failure by future automation :eyes:
Sounds good, I'll spend a little time looking for a solution.
PR here with initial attempt
Fixed by #57. Thanks, @ajistrying !
Right now, if fetching the data from start.gg goes anything less than perfectly, we do nothing to expose the error (for example by writing it to stderr). For example, if the auth token is invalid, this is all we write to stderr at the moment:
We should instead look for an error in the response from start.gg and log it.