There is an example of such logging for inline queries, implemented in commit d3c2a87a9c3aa1a571956ed1e3866e1a64012107.
Make a wrapper over JsonRequest to proxy sending but with logging in a case of an error to log the string caused the error. Or something like that. It would be nice to invent a smart general solution, not to modify each handler manually.
There is an example of such logging for inline queries, implemented in commit d3c2a87a9c3aa1a571956ed1e3866e1a64012107.
Make a wrapper over
JsonRequest
to proxy sending but with logging in a case of an error to log the string caused the error. Or something like that. It would be nice to invent a smart general solution, not to modify each handler manually.