log req.method

This commit is contained in:
Matteo Pagliazzi
2016-05-31 16:37:34 +02:00
parent bcbf00d42c
commit ee836c76a4
2 changed files with 2 additions and 0 deletions
@@ -165,6 +165,7 @@ describe('errorHandler', () => {
expect(logger.error).to.be.calledOnce;
expect(logger.error).to.be.calledWithExactly(error, {
method: req.method,
originalUrl: req.originalUrl,
headers: req.headers,
body: req.body,