Currently, the payload received from the API is printed out to stdout. This behaviour makes it difficult to determine whether or not there was an error earlier in the app runtime due to the length of the payload.
I changed the behaviour in bot.py to instead write RuntimeLogs/payload.json instead so that the stdout is less cluttered.
I also added this new log folder to .gitignore.
Caveats:
Currently, there is no way to switch or enable the printing of the payload to stdout.
Subsequent runs of the bot will replace payload.json rather than creating a new file.
There is no way to change the folder or filename without editing the code.
Currently, the payload received from the API is printed out to stdout. This behaviour makes it difficult to determine whether or not there was an error earlier in the app runtime due to the length of the payload.
I changed the behaviour in
bot.py
to instead writeRuntimeLogs/payload.json
instead so that the stdout is less cluttered.I also added this new log folder to .gitignore.
Caveats:
payload.json
rather than creating a new file.