pokepark / PokemonRaidBot

Telegram bot for organizing Raids in Pokémon Go. Developers & admins are welcome to join https://t.me/PokeParkSupport
https://t.me/PokeParkSupport
GNU Affero General Public License v3.0
48 stars 40 forks source link

Improve raidpicture.php error handling & logging #224

Closed jinnatar closed 3 years ago

jinnatar commented 3 years ago

Document & make use of new info_log() to help troubleshoot issues

- Info level logging is enabled by default since it has very low
verbosity except in cases that probably deserve poking into.
- Update a few logging calls to info_log() as an example.

Add error handling & logging to raidpicture, fallback pokemon icon

- Use the new info_log() to provide useful hints when pokemon icons are
missing
- Revamp fallback image handling so that even unknown raid levels get at
least some icon, avoiding spurious errors
- Icon is under the Pixabay License: https://pixabay.com/vectors/pokemon-pokemon-go-pikachu-figure-1574006/