Add relevant request metadata to logged errors

Closes #1