kopia lustrzana https://github.com/friendica/friendica
Add LogChannel::JETSTREAM
rodzic
2acfab4add
commit
244b85e1f2
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue