Skip to content

Commit

Permalink
Log query in accessLogger
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Oct 9, 2024
1 parent b6d412a commit e762d49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/fiware-pep-steelskin.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ function accountInfoError(error, req, res, next) {
' | SubService=' + req.subService +
' | Action=' + req.action +
' | Path=' + req.path +
' | Query=' + JSON.stringify(req.query) +
' | Body=' + JSON.stringify(req.body) +
' | Date=' + new Date().toJSON());
next(error);
Expand Down
1 change: 1 addition & 0 deletions lib/middleware/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ function accountInfo(req, res, next) {
' | SubService=' + req.subService +
' | Action=' + req.action +
' | Path=' + req.path +
' | Query=' + JSON.stringify(req.query) +
' | Body=' + JSON.stringify(req.body).slice(0, 100) + // not all body
' | Date=' + new Date().toJSON());
});
Expand Down

0 comments on commit e762d49

Please sign in to comment.