From 9bb6e9f90ef05a30298045f4def73c7b1d8f14f1 Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Mon, 9 Oct 2017 20:17:15 +0200 Subject: [PATCH] TT#20097 Fix 404 for /grafana Change-Id: I85c95a7939635d828cccf053e56e7eead35b9a12 (cherry picked from commit 3d70eb14a5c27fe1158633970d8ac62dae4bd380) --- lib/NGCP/Panel/Controller/Grafana.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/NGCP/Panel/Controller/Grafana.pm b/lib/NGCP/Panel/Controller/Grafana.pm index b048f06521..d6ac03b819 100644 --- a/lib/NGCP/Panel/Controller/Grafana.pm +++ b/lib/NGCP/Panel/Controller/Grafana.pm @@ -17,7 +17,7 @@ sub auto :Does(ACL) :ACLDetachTo('/denied_page') :AllowedRole(admin) { return 1; } -sub root :Chained('/') :PathPart('grafana') :CaptureArgs() { +sub root :Chained('/') :PathPart('grafana') :Args() { my ( $self, $c, @fullpath ) = @_; my $path = join '/', @fullpath; @@ -26,7 +26,6 @@ sub root :Chained('/') :PathPart('grafana') :CaptureArgs() { $c->config->{grafana}{host} . ':' . $c->config->{grafana}{port}; $url .= "/".$path if length $path; - $c->log->debug("accessing grafana via ngcp-panel proxy, url is $url"); my $req = HTTP::Request->new($c->req->method => $url); $req->header('Content-Type' => $c->req->header('Content-Type'));