Skip to content

Commit

Permalink
Item13065: Log jsonrpc events
Browse files Browse the repository at this point in the history
This can be easily disabled by adding "jsonrpc => 0" to
$Foswiki::cfg{Log}{Action} = { } hash
  • Loading branch information
gac410 committed Nov 25, 2014
1 parent 792d90a commit 02bbf43
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions JsonRpcContrib/lib/Foswiki/Contrib/JsonRpcContrib/Server.pm
Expand Up @@ -153,6 +153,15 @@ sub dispatch {
}
}

$session->logger->log(
{
level => 'info',
action => 'jsonrpc',
webTopic => $session->{webName} . '.' . $session->{topicName},
extra => $request->namespace() . ' ' . $request->method(),
}
);

# call
my $code = 0;
my $result;
Expand Down

0 comments on commit 02bbf43

Please sign in to comment.