Skip to content

Commit 32186f7

Browse files
committed
Add a log line when starting action processes
1 parent fa96ad4 commit 32186f7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Scheduler.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,17 @@
3131
use React\Filesystem\FilesystemInterface;
3232
use RuntimeException;
3333

34+
use function array_filter;
3435
use function array_key_first;
36+
use function array_keys;
37+
use function array_map;
3538
use function error_get_last;
39+
use function function_exists;
3640
use function gettype;
3741
use function is_array;
42+
use function json_last_error_msg;
43+
use function opcache_get_status;
44+
use function strlen;
3845
use function tempnam;
3946
use function json_encode;
4047
use function json_decode;
@@ -394,6 +401,8 @@ public function start_action(string $actionName): Process
394401
$process = new Process('exec ' . $actionConfig['cmd'], $actionConfig['wd'], $actionConfig['env']);
395402
$process->start($this->loop);
396403

404+
$this->logger->info("Started action process $actionName");
405+
397406
$process->stderr->on('data', function ($data) use ($actionName) {
398407
$this->logger->error("$actionName message: " . trim($data));
399408
});

0 commit comments

Comments
 (0)