New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New enable_sql_profiler INI setting for Tracker #14288
Conversation
I feel like this might get really confusing with the existing Lines 142 to 145 in f690829
|
@Findus23 using the sql profiler in tracking you don't want to use when you only want to use the SQL profiler for archiving or web. |
@@ -25,7 +25,7 @@ public function init(Tracker $tracker) | |||
{ | |||
ob_start(); // we use ob_start only because of Common::printDebug, we should actually not really use ob_start | |||
|
|||
if ($tracker->isDebugModeEnabled()) { | |||
if ($tracker->isDebugModeEnabled() && TrackerConfig::getConfigValue('enable_sql_profiler')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@simivar I'm wondering maybe it can be useful to enable enable_sql_profiler
without enabling $tracker->isDebugModeEnabled()
? Not sure... If we make it independent, we would also need to adjust the code in line 90
where we print the profiling results. I suppose it's fine though. Maybe let's just leave it like this for now.
@simivar fyi removed the need for `[log]` as it should be 99% enabled. It's just important they also enable tracker debug.
Thanks for this @simivar Also created https://github.com/matomo-org/developer-documentation/pull/302/files to adjust the docs. |
#14219