File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 55namespace Icinga \Module \Graphite \Controllers ;
66
77use GuzzleHttp \Psr7 \ServerRequest ;
8+ use Icinga \Module \Graphite \Util \InternalProcessTracker as IPT ;
89use Icinga \Module \Graphite \Web \Controller \IcingadbGraphiteController ;
910use Icinga \Module \Graphite \Web \Controller \TimeRangePickerTrait ;
1011use Icinga \Module \Graphite \Web \Widget \IcingadbGraphs ;
@@ -28,7 +29,13 @@ public function indexAction()
2829 }
2930
3031 // shift graph params to avoid exception
32+ $ graphDebug = $ this ->params ->shift ('graph_debug ' );
3133 $ graphRange = $ this ->params ->shift ('graph_range ' );
34+
35+ if ($ graphDebug ) {
36+ IPT ::enable ();
37+ }
38+
3239 $ baseFilter = $ graphRange ? Filter::equal ('graph_range ' , $ graphRange ) : null ;
3340 foreach ($ this ->preservedParams as $ param ) {
3441 $ this ->params ->shift ($ param );
Original file line number Diff line number Diff line change 33namespace Icinga \Module \Graphite \Controllers ;
44
55use GuzzleHttp \Psr7 \ServerRequest ;
6+ use Icinga \Module \Graphite \Util \InternalProcessTracker as IPT ;
67use Icinga \Module \Graphite \Web \Controller \IcingadbGraphiteController ;
78use Icinga \Module \Graphite \Web \Controller \TimeRangePickerTrait ;
89use Icinga \Module \Graphite \Web \Widget \IcingadbGraphs ;
@@ -26,7 +27,13 @@ public function indexAction()
2627 }
2728
2829 // shift graph params to avoid exception
30+ $ graphDebug = $ this ->params ->shift ('graph_debug ' );
2931 $ graphRange = $ this ->params ->shift ('graph_range ' );
32+
33+ if ($ graphDebug ) {
34+ IPT ::enable ();
35+ }
36+
3037 $ baseFilter = $ graphRange ? Filter::equal ('graph_range ' , $ graphRange ) : null ;
3138 foreach ($ this ->preservedParams as $ param ) {
3239 $ this ->params ->shift ($ param );
You can’t perform that action at this time.
0 commit comments