The `middleware` should log error message