Skip to content

Commit

Permalink
add path and body to account log
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Oct 4, 2024
1 parent 5f12d00 commit 72a9d5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/fiware-pep-steelskin.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ function accountInfoError(error, req, res, next) {
' | SubServiceId=' + req.subserviceId +
' | SubService=' + req.subService +
' | Action=' + req.action +
' | Path=' + req.path +
' | Body=' + JSON.stringify(req.body) +
' | Date=' + new Date().toJSON());
next(error);
}
Expand Down
2 changes: 2 additions & 0 deletions lib/middleware/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ function accountInfo(req, res, next) {
' | SubServiceId=' + req.subserviceId +
' | SubService=' + req.subService +
' | Action=' + req.action +
' | Path=' + req.path +
' | Body=' + JSON.stringify(req.body).slice(0, 100) +
' | Date=' + new Date().toJSON());
});
}
Expand Down

0 comments on commit 72a9d5d

Please sign in to comment.