public function run($command, $args)
{
if (!function_exists('proc_open')) {
+ $this->logger->notice('"proc_open" not available - quitting');
return;
}
}
if ($this->isMinMemoryReached()) {
+ $this->logger->notice('Memory limit reached - quitting');
return;
}
$resource = proc_open($cmdline . ' &', [], $foo, $this->basePath);
}
if (!is_resource($resource)) {
- $this->logger->debug('We got no resource for command.', ['cmd' => $cmdline]);
+ $this->logger->notice('We got no resource for command.', ['command' => $cmdline]);
return;
}
proc_close($resource);
+
+ $this->logger->info('Executed "proc_open"', ['command' => $cmdline, 'callstack' => System::callstack(10)]);
}
}