TT#130659 Improve path debug output in panel-debug.log

It is much more usable to see the debug information as URLs:

> Jul 22 08:24:53 sp1 ngcp-panel: DEBUG: *** New GET request on path: /
> Jul 22 08:24:53 sp1 ngcp-panel: DEBUG: *** New GET request on path: /subscriber
> Jul 22 08:24:53 sp1 ngcp-panel: DEBUG: *** New GET request on path: /subscriber/ajax

Instead of Catalyst oriented way:

> Jul 22 08:24:53 sp1 ngcp-panel: DEBUG: *** New GET request on path:
> Jul 22 08:24:53 sp1 ngcp-panel: DEBUG: *** New GET request on path: subscriber
> Jul 22 08:24:53 sp1 ngcp-panel: DEBUG: *** New GET request on path: subscriber/ajax

Change-Id: I38699152e232c5f5aa2ef218db9bf61c692bbf33
mr10.0
Alexander Lutay 4 years ago
parent 382ae285a9
commit 12c2911fe4

@ -32,7 +32,7 @@ sub auto :Private {
$c->stash->{_request_start} = Time::HiRes::time;
my $is_api_request = 0;
$c->log->debug("*** New " . $c->request->method . " request on path: " . $c->request->path);
$c->log->debug("*** New " . $c->request->method . " request on path: /" . $c->request->path);
if ($c->request->path =~/^api\//i) {
$c->log->debug("Root::auto enable cache");
NGCP::Panel::Form::dont_use_cache(0);

Loading…
Cancel
Save