Add LogChannel::JETSTREAM

pull/14976/head
Art4 2025-06-18 09:33:23 +00:00
rodzic 2acfab4add
commit 244b85e1f2
2 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -293,7 +293,7 @@ class App
{
$command = strtolower($argv[1] ?? '');
if ($command === 'daemon' || $command === 'jetstream') {
if ($command === 'daemon') {
return LogChannel::DAEMON;
}
@ -301,7 +301,9 @@ class App
return LogChannel::WORKER;
}
// @TODO Add support for jetstream
if ($command === 'jetstream') {
return LogChannel::JETSTREAM;
}
return LogChannel::CONSOLE;
}

Wyświetl plik

@ -24,6 +24,8 @@ interface LogChannel
public const DAEMON = 'daemon';
/** @var string channel for worker execution */
public const WORKER = 'worker';
/** @var string channel for jetstream execution */
public const JETSTREAM = 'jetstream';
/** @var string channel for frontend app executions */
public const APP = 'app';
}