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 f0524cb commit cc56536
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Koha/Middleware/SetEnv.pm
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ 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 ) )
if $req->method eq 'POST';

# 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 cc56536

Please sign in to comment.