mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-23 14:58:26 -04:00
add debug message when no changes are being made to a monitor
This commit is contained in:
1 parent
73555edfdc
commit
67155e98eb
1 file changed
+4
-2
@@ -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 (
|
||||
|
||||
Reference in new issue
Block a user