Add logging to backtround task
This commit is contained in:
@@ -7,6 +7,7 @@ class SihnonFramework_BackgroundTask {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static function run($command) {
|
public static function run($command) {
|
||||||
|
SihnonFramework_LogEntry::debug(SihnonFramework_Main::instance()->log(), "Running background task: {$command} &", 'default');
|
||||||
$pipes = array();
|
$pipes = array();
|
||||||
$pid = proc_open($command . ' &', array(), $pipes);
|
$pid = proc_open($command . ' &', array(), $pipes);
|
||||||
proc_close($pid);
|
proc_close($pid);
|
||||||
|
|||||||
Reference in New Issue
Block a user