From e45316dcd10480d94b5b3fb48cf020f708196d18 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 5 May 2017 17:53:03 -0400 Subject: [PATCH] add debugging --- web/includes/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/includes/functions.php b/web/includes/functions.php index 0f0441d38..586e1829a 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -1043,7 +1043,9 @@ function createVideo( $event, $format, $rate, $scale, $overwrite=false ) { $command .= " -s ".sprintf( "%.2f", ($scale/SCALE_BASE) ); if ( $overwrite ) $command .= " -o"; - $result = exec( escapeshellcmd( $command ), $output, $status ); + $command = escapeshellcmd( $command ); + $result = exec( $command, $output, $status ); +Debug("generating Video $command: result($result outptu:(".implode("\n", $output )." status($status"); return( $status?"":rtrim($result) ); }