You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Often, when I work on an HTTP request, I would like to see my final request and full response for debug purposes. It is not necessary to output it as part of notebook output (though it could also be useful in some situations).
Currently, it's not apparent how to do this. Maybe a special Notebook-level log window could be created and integrated with the Ktor logging plugin.
For now the only way is to print output of request manually, because NotebookHttpResponse.toString() has only basic information
The text was updated successfully, but these errors were encountered:
If you want to log these requests/responses to a cell output, you can indeed use Ktor logging plugin. You just need to set logger = Logger.SIMPLE in the configuration block.
Ah, Logger.SIMPLE makes it work, thanks!
Maybe it's also possible to print body as JSON (or csv or other format supported by notebooks) automatically if Content-Type is application-json
It looks that it would still make sense to have an option to have a log window in addition to Notebooks output. But probably It's worth to report separately
Often, when I work on an HTTP request, I would like to see my final request and full response for debug purposes. It is not necessary to output it as part of notebook output (though it could also be useful in some situations).
Currently, it's not apparent how to do this. Maybe a special Notebook-level log window could be created and integrated with the Ktor logging plugin.
For now the only way is to print output of request manually, because NotebookHttpResponse.toString() has only basic information
The text was updated successfully, but these errors were encountered: