Debug nginx reload output

This commit is contained in:
Greyscale 2024-04-03 22:36:41 +02:00
parent 67c0c893ab
commit c08b54c0ad
No known key found for this signature in database
GPG key ID: 74BAFF55434DA4B2

View file

@ -939,6 +939,7 @@ class Bouncer
$command = new CommandBuilder('/usr/sbin/nginx');
$command->addFlag('s', 'reload');
$this->logger->info('Restarting nginx', ['emoji' => Emoji::timerClock() . ' ']);
$shell->run($command);
$nginxRestartOutput = $shell->run($command);
$this->logger->debug('Nginx restarted {restart_output}', ['restart_output' => $nginxRestartOutput, 'emoji' => Emoji::partyPopper()]);
}
}