Skip to content

Commit

Permalink
BWS-PKG - Log GET and POST params for each request
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemhall committed Oct 10, 2023
1 parent cfdb242 commit f7fe3fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Koha/Middleware/SetEnv.pm
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ sub call {
my ( $self, $env ) = @_;
my $req = Plack::Request->new($env);

Koha::Logger->get()->warn( $req->request_uri . " CALLED WITH " . Data::Dumper::Dumper( $req->parameters->as_hashref_mixed) );

# First, we split the result only on unescaped commas.
my @setenv_headers = split /(?<!\\),\s*/, $req->header('X-Koha-SetEnv') || '';

Expand Down

0 comments on commit f7fe3fd

Please sign in to comment.