From: Chuck Scott Date: Thu, 25 Oct 2018 15:23:05 +0000 (-0400) Subject: Moved controler start, stop, and memory debug messages to DEBUG_VERBOSE. X-Git-Tag: v2.11.0^2~70 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=9a60468815c574a382acdd38cecb4d97ed6036d7;p=WP-Plugins%2Fglm-member-db.git Moved controler start, stop, and memory debug messages to DEBUG_VERBOSE. --- diff --git a/controllers/admin.php b/controllers/admin.php index 7e5bfc2a..46100ca0 100755 --- a/controllers/admin.php +++ b/controllers/admin.php @@ -123,7 +123,7 @@ class glmMembersAdmin extends GlmPluginSupport public function __construct ($wpdb, $config) { - if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG) { + if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) { trigger_error(glmAssociateMemoryUsage().' - Start Admin Controller Constructor',E_USER_NOTICE); } @@ -234,7 +234,7 @@ class glmMembersAdmin extends GlmPluginSupport } - if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG) { + if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) { trigger_error(glmAssociateMemoryUsage().' - End Admin Controller Constructor',E_USER_NOTICE); } @@ -254,7 +254,7 @@ class glmMembersAdmin extends GlmPluginSupport public function glmMembersAdminAjax() { - if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG) { + if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) { trigger_error(glmAssociateMemoryUsage()." - Start AJAX Controller",E_USER_NOTICE); trigger_error(glmAssociateTimeTracker()." - Start AJAX Controller",E_USER_NOTICE); } @@ -262,7 +262,7 @@ class glmMembersAdmin extends GlmPluginSupport $defaultTimeZone = date_default_timezone_get(); date_default_timezone_set($this->config['settings']['time_zone']); - if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG) { + if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) { trigger_error(glmAssociateMemoryUsage().' - Start Admin Controller AJAX',E_USER_NOTICE); } @@ -392,14 +392,14 @@ class glmMembersAdmin extends GlmPluginSupport // Generate output from model data and view $smarty->template->display($viewFile); - if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG) { + if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) { trigger_error(glmAssociateMemoryUsage().' - End Admin Controller AJAX',E_USER_NOTICE); } // Restore timezone that was set before our code was called date_default_timezone_set($defaultTimeZone); - if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG) { + if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) { trigger_error(glmAssociateMemoryUsage()." - End AJAX Controller",E_USER_NOTICE); trigger_error(glmAssociateTimeTracker()." - End AJAX Controller",E_USER_NOTICE); } @@ -729,7 +729,7 @@ class glmMembersAdmin extends GlmPluginSupport public function controller( $menuItem, $action = false, $actionData = false, $returnOutput = false, $forceAction = false ) { - if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG) { + if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) { trigger_error(glmAssociateMemoryUsage()." - Start Admin Controller, Menu = $menuItem, Action = $action",E_USER_NOTICE); trigger_error(glmAssociateTimeTracker()." - Start Admin Controller",E_USER_NOTICE); } @@ -1082,7 +1082,7 @@ class glmMembersAdmin extends GlmPluginSupport // Restore timezone that was set before our code was called date_default_timezone_set($defaultTimeZone); - if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG) { + if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) { trigger_error(glmAssociateMemoryUsage().' - End Admin Controller',E_USER_NOTICE); trigger_error(glmAssociateTimeTracker().' - End Admin Controller',E_USER_NOTICE); } diff --git a/index.php b/index.php index d00c81db..e59ba894 100755 --- a/index.php +++ b/index.php @@ -223,7 +223,7 @@ require_once 'defines.php'; // Get configuration require_once 'config.php'; -if (GLM_MEMBERS_PLUGIN_DEBUG) { +if (GLM_MEMBERS_PLUGIN_DEBUG_VERBOSE) { ini_set('log_errors_max_len', 4096); trigger_error("GLM Associate Index Start: ".glmAssociateMemoryUsage()." - Start glm-member-db setup",E_USER_NOTICE); } @@ -853,7 +853,7 @@ if (!$timestamp) { wp_schedule_event( $t, 'hourly', 'glm_associate_cron' ); } -if (GLM_MEMBERS_PLUGIN_DEBUG) { +if (GLM_MEMBERS_PLUGIN_DEBUG_VERBOSE) { trigger_error("GLM Associate Index End: ".glmAssociateMemoryUsage()." - Start glm-member-db setup",E_USER_NOTICE); }