Skip to content

Commit

Permalink
removed te header based logger
Browse files Browse the repository at this point in the history
  • Loading branch information
chen-zimmer-px committed Jan 17, 2024
1 parent 20ff3e6 commit f67afac
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Added

- Support for header-based logger
- Added `risk_start_time` and `enforcer_start_time` fields to enforcer activities.
- Added `failOnEmptyBody` flag for `callServer` to specify weather or not a request should fail if it has no body.
- Updated the configuration of PX first-party requests to include a connection timeout
Expand Down
7 changes: 0 additions & 7 deletions lib/pxenforcer.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,8 @@ class PerimeterXEnforcer {
parseCookies(req, res).then(() => {
enforcer.enforce(req, res, (err, response) => {
let pxContext = null;
if (req.locals && req.locals.pxCtx) {
pxContext = req.locals.pxCtx;
}
if (!err && response) {
PerimeterXEnforcer.handleCallbackResponse(err, response, res);

enforcer.sendHeaderBasedLogs(pxContext, enforcer.config.conf, req);
} else {
//pass
saveResponseBody(res);
Expand All @@ -102,8 +97,6 @@ class PerimeterXEnforcer {
}
});

enforcer.sendHeaderBasedLogs(pxContext, enforcer.config.conf, req);

next();
}

Expand Down

0 comments on commit f67afac

Please sign in to comment.