Add logging to backtround task

This commit is contained in:
2011-04-25 00:44:42 +01:00
parent e2648d4c08
commit 4604a57434

View File

@@ -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);