Commented out some non-error error_log calls.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2246 e3e1d417-86f3-4887-817a-d78f3d33393fpull/27/merge
parent
dc8aa90860
commit
d51427e567
|
@ -49,7 +49,7 @@ if ( canEdit( 'Monitors' ) )
|
||||||
}
|
}
|
||||||
|
|
||||||
$response['result'] = 'Ok';
|
$response['result'] = 'Ok';
|
||||||
error_log( $zmu_command );
|
//error_log( $zmu_command );
|
||||||
$response['message'] = exec( escapeshellcmd( $zmu_command ) );
|
$response['message'] = exec( escapeshellcmd( $zmu_command ) );
|
||||||
echo jsValue( $response );
|
echo jsValue( $response );
|
||||||
|
|
||||||
|
|
|
@ -995,7 +995,7 @@ if ( $control != 'null' )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$option_string = serialize( $options );
|
$option_string = serialize( $options );
|
||||||
error_log( "Command: $option_string" );
|
//error_log( "Command: $option_string" );
|
||||||
if ( socket_write( $socket, $option_string ) )
|
if ( socket_write( $socket, $option_string ) )
|
||||||
{
|
{
|
||||||
$response = array( 'result' => "Ok", 'message' => 'Used socket' );
|
$response = array( 'result' => "Ok", 'message' => 'Used socket' );
|
||||||
|
@ -1009,14 +1009,14 @@ if ( $control != 'null' )
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$ctrl_command .= " --id=".$monitor['Id'];
|
$ctrl_command .= " --id=".$monitor['Id'];
|
||||||
error_log( "Command: $ctrl_command" );
|
//error_log( "Command: $ctrl_command" );
|
||||||
|
|
||||||
// Can't connect so use script
|
// Can't connect so use script
|
||||||
$ctrl_status = '';
|
$ctrl_status = '';
|
||||||
$ctrl_output = array();
|
$ctrl_output = array();
|
||||||
exec( escapeshellcmd( $ctrl_command ), $ctrl_output, $ctrl_status );
|
exec( escapeshellcmd( $ctrl_command ), $ctrl_output, $ctrl_status );
|
||||||
error_log( "Status: $ctrl_status" );
|
//error_log( "Status: $ctrl_status" );
|
||||||
error_log( "Output: ".join( "\n", $ctrl_output ) );
|
//error_log( "Output: ".join( "\n", $ctrl_output ) );
|
||||||
if ( !$ctrl_status )
|
if ( !$ctrl_status )
|
||||||
$response = array( 'result' => "Ok", 'message' => 'Used script' );
|
$response = array( 'result' => "Ok", 'message' => 'Used script' );
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue