Skip to content

Commit c55231a

Browse files
committed
debug
1 parent 5071cb8 commit c55231a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/routes/copilotOpportunity/get.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import util from '../../util';
44
module.exports = [
55
(req, res, next) => {
66
const { id } = req.params;
7-
7+
req.log.info("Reached get endpoint");
88
if (!id || isNaN(id)) {
99
return util.handleError('Invalid opportunity ID', null, req, next, 400);
1010
}

src/routes/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ router.use((err, req, res, next) => { // eslint-disable-line no-unused-vars
473473

474474
// catch 404 and forward to error handler
475475
router.use((req, res, next) => {
476+
req.log.info("reached middleware")
476477
const err = new Error('Not Found');
477478
err.status = 404;
478479
next(err);

0 commit comments

Comments
 (0)