From c90d35589e7281211481bf9dace5163fe115bff3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 26 Sep 2011 16:26:12 +0200 Subject: [PATCH] $::lxdebug->log_time optional text mitgeben. --- SL/LXDebug.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/LXDebug.pm b/SL/LXDebug.pm index d01caa1a9..2f80caccd 100644 --- a/SL/LXDebug.pm +++ b/SL/LXDebug.pm @@ -292,9 +292,9 @@ sub end_request { } sub log_time { - my $self = shift; + my ($self, @slurp) = @_; return 1 unless want_request_timer(); - $self->_write("time", $self->get_request_time); + $self->_write("time", $self->get_request_time() . (@slurp ? " (@slurp)" : '')); } sub get_request_time { -- 2.20.1