From 028cd4a65fea5333dcb1bf77c159785e33363af7 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 29 Mar 2016 16:24:54 +0200 Subject: [PATCH] LXDebug: beim Request-Timer auch die aufgerufene Controller+Action loggen --- SL/Dispatcher.pm | 2 +- SL/LXDebug.pm | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/SL/Dispatcher.pm b/SL/Dispatcher.pm index 77074ccd0..38973216d 100644 --- a/SL/Dispatcher.pm +++ b/SL/Dispatcher.pm @@ -324,7 +324,7 @@ sub handle_request { $self->{request}->Finish; } - $::lxdebug->end_request; + $::lxdebug->end_request(routing_type => $routing_type, script_name => $script_name, action => $action); # cleanup $::auth->save_session; diff --git a/SL/LXDebug.pm b/SL/LXDebug.pm index c0983aa09..d3ab1e53a 100644 --- a/SL/LXDebug.pm +++ b/SL/LXDebug.pm @@ -296,9 +296,10 @@ sub begin_request { } sub end_request { - my $self = shift; + my ($self, %params) = @_; return 1 unless want_request_timer(); - $self->_write("time", $self->get_request_time); + + $self->_write("time", sprintf('%f (%s/%s)', $self->get_request_time, $params{script_name}, $params{action})); $self->{calldepth} = 0; } -- 2.20.1