log req.method
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user