From c08b54c0ad191e72c2606bd2c007dabba3a5edda Mon Sep 17 00:00:00 2001 From: Matthew Baggett Date: Wed, 3 Apr 2024 22:36:41 +0200 Subject: [PATCH] Debug nginx reload output --- bouncer/src/Bouncer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bouncer/src/Bouncer.php b/bouncer/src/Bouncer.php index e39b162..4cbcd82 100644 --- a/bouncer/src/Bouncer.php +++ b/bouncer/src/Bouncer.php @@ -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()]); } }