The `middleware` should log error message
Merge pull request #25 from enb-bem/issue-23

The `middleware` should log error message