Fixup LogChannels

This commit is contained in:
Philipp 2025-01-05 22:26:08 +01:00
parent 40fbb02149
commit 5fe9d53cfa
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
5 changed files with 5 additions and 7 deletions

View file

@ -32,4 +32,4 @@ $argv = $_SERVER['argv'] ?? [];
array_splice($argv, 1, 0, "daemon");
$container = \Friendica\Core\Container::fromDice($dice);
\Friendica\Core\Console::create($container, $_SERVER['argv'] ?? [])->execute();
\Friendica\Core\Console::create($container, $argv)->execute();

View file

@ -27,4 +27,4 @@ $argv = $_SERVER['argv'] ?? [];
array_splice($argv, 1, 0, "jetstream");
$container = \Friendica\Core\Container::fromDice($dice);
\Friendica\Core\Console::create($container, $_SERVER['argv'] ?? [])->execute();
\Friendica\Core\Console::create($container, $argv)->execute();

View file

@ -29,4 +29,4 @@ $argv = $_SERVER['argv'] ?? [];
array_splice($argv, 1, 0, "worker");
$container = \Friendica\Core\Container::fromDice($dice);
\Friendica\Core\Console::create($container, $_SERVER['argv'] ?? [])->execute();
\Friendica\Core\Console::create($container, $argv)->execute();

View file

@ -93,7 +93,7 @@ HELP;
protected function doExecute()
{
if ($this->executable !== 'bin/console.php') {
if (substr($this->executable,-strlen('bin/console.php')) !== 'bin/console.php') {
$this->out(sprintf("'%s' is deprecated and will removed. Please use 'bin/console.php daemon' instead", $this->executable));
}
@ -101,8 +101,6 @@ HELP;
throw new RuntimeException("Friendica isn't properly installed yet");
}
$this->logger->warning('blah!');
$this->mode->setExecutor(Mode::DAEMON);
$this->config->reload();

View file

@ -24,7 +24,7 @@ use RuntimeException;
*/
final class JetstreamDaemon extends AbstractConsole
{
public const LOG_CHANNEL = LogChannel::AUTH_JABBERED;
public const LOG_CHANNEL = LogChannel::DAEMON;
private Mode $mode;
private IManageConfigValues $config;