dbi->isSuperUser()) { $this->dbi->selectDb('mysql'); } if (! $this->response->isAjax()) { return; } $this->response->addJSON([ 'message' => $this->monitor->getJsonForLoggingVars( $request->getParsedBodyParam('varName'), $request->getParsedBodyParam('varValue'), ), ]); } }