log request bodies in logger middleware

I've found it helpful to see the request body in addition to request headers when using the logging middleware.  This change adds logging for the body.

While adding tests, I noticed some failures in `env_test` which I didn't address in this PR. Are you aware of these failures?