Skip to content

feat(ux): display on stdout the requests made to the server like nginx

Also differentiate when it's a CW or a Pyramid view.

This introduce the behavior of every other web framework I've ever used which just display what requests are made on the cli because that's at least the most basic behavior you want to just understand what is happening.

It display of the view has been from cubicweb or pyramid for easier understanding.

The second commit also display on stderr the traceback if a request failed.

A quick improvement that can be made is the change the color of the line depending on the return code (like red for 5xx, orange/yellow for 4xx, green for 2xx, idk for 3xx) but that's for another MR (maybe not by me).

Looks like this:

image

Edited by Laurent Peuch

Merge request reports