From 32873b95af85f46a64aaee6b3381444493e82495 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 13 Jul 2015 20:00:18 +0200 Subject: [PATCH] Shorten event msg for API actions --- vroom.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vroom.pl b/vroom.pl index 7409c09..b066e50 100755 --- a/vroom.pl +++ b/vroom.pl @@ -1579,7 +1579,7 @@ any '/api' => sub { if (!$res){ $self->log_event({ event => 'api_action_denied', - msg => "API Key $token calls API action $req->{action} but has been denied" + msg => "Key $token called $req->{action} but has been denied" }); return $self->render( json => { @@ -1593,7 +1593,7 @@ any '/api' => sub { if (!grep { $_ eq $req->{action} } API_NO_LOG){ $self->log_event({ event => 'api_action_allowed', - msg => "API Key $token calls API action $req->{action}" + msg => "Key $token called $req->{action}" }); }