From 67155e98eb6f4f4e928f48bf9d5380ea9fd48673 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 11 Jun 2018 16:34:40 -0400 Subject: [PATCH] add debug message when no changes are being made to a monitor --- web/includes/actions.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/includes/actions.php b/web/includes/actions.php index 54402da7c..f776e080c 100644 --- a/web/includes/actions.php +++ b/web/includes/actions.php @@ -492,8 +492,8 @@ if ( canEdit( 'Monitors' ) ) { # If we change anything that changes the shared mem size, zma can complain. So let's stop first. if ( $monitor['Type'] != 'WebSite' ) { - zmaControl( $monitor, 'stop' ); - zmcControl( $monitor, 'stop' ); + zmaControl($monitor, 'stop'); + zmcControl($monitor, 'stop'); } dbQuery( 'UPDATE Monitors SET '.implode( ', ', $changes ).' WHERE Id=?', array($mid) ); // Groups will be added below @@ -567,6 +567,8 @@ if ( canEdit( 'Monitors' ) ) { } $restart = true; + } else { + Logger::Debug("No action due to no changes to Monitor"); } # end if count(changes) if (