File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -688,7 +688,16 @@ public function __construct($webRoot, \OC\Config $config) {
688688 $ config = $ c ->get (\OCP \IConfig::class);
689689
690690 if ($ config ->getSystemValue ('installed ' , false ) && !(defined ('PHPUNIT_RUN ' ) && PHPUNIT_RUN )) {
691- $ v = \OC_App::getAppVersions ();
691+ if (!$ config ->getSystemValueBool ('log_query ' )) {
692+ $ v = \OC_App::getAppVersions ();
693+ } else {
694+ // If the log_query is enabled, we can not get the app versions
695+ // as that does a query, which will be logged and the logging
696+ // depends on redis and here we are back again in the same function.
697+ $ v = [
698+ 'log_query ' => 'enabled ' ,
699+ ];
700+ }
692701 $ v ['core ' ] = implode (', ' , \OC_Util::getVersion ());
693702 $ version = implode (', ' , $ v );
694703 $ instanceId = \OC_Util::getInstanceId ();
You can’t perform that action at this time.
0 commit comments