Skip to content

Commit 40b60bb

Browse files
committed
remove logging statements
1 parent c0df226 commit 40b60bb

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

server/classes/headstart/preprocessing/Snapshot.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,14 @@ public function __construct($ini_array, $query, $id, $service, $service_name, $v
3131

3232
$url = "{$host}{$snap_php}?{$url_postfix}";
3333
$this->cmd = "{$node_path} {$getsvg} \"{$url}\" {$storage}{$post_data['file']}.png {$nodemodules}";
34-
// Use 2>&1 to redirect both standard output and standard error to the same file
35-
$this->cmd .= ' 2>&1';
36-
error_log("Snapshot command");
37-
error_log($this->cmd);
3834
}
3935

4036
public function takeSnapshot() {
4137
if (substr(php_uname(), 0, 7) == "Windows"){
4238
pclose(popen("start /B ". $this->cmd, "r"));
4339
}
4440
else {
45-
$output = shell_exec($this->cmd . " &");
46-
error_log("Snapshot output");
47-
error_log($output);
41+
exec($this->cmd . " &");
4842
}
4943
}
5044
}

0 commit comments

Comments
 (0)