Moved controler start, stop, and memory debug messages to DEBUG_VERBOSE.
authorChuck Scott <cscott@gaslightmedia.com>
Thu, 25 Oct 2018 15:23:05 +0000 (11:23 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Thu, 25 Oct 2018 15:23:27 +0000 (11:23 -0400)
controllers/admin.php
index.php

index 7e5bfc2..46100ca 100755 (executable)
@@ -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);
         }
index d00c81d..e59ba89 100755 (executable)
--- 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);
 }