Better documentation of why logging middleware appears where it does