Debug nginx reload output
This commit is contained in:
parent
67c0c893ab
commit
c08b54c0ad
1 changed files with 2 additions and 1 deletions
|
|
@ -939,6 +939,7 @@ class Bouncer
|
||||||
$command = new CommandBuilder('/usr/sbin/nginx');
|
$command = new CommandBuilder('/usr/sbin/nginx');
|
||||||
$command->addFlag('s', 'reload');
|
$command->addFlag('s', 'reload');
|
||||||
$this->logger->info('Restarting nginx', ['emoji' => Emoji::timerClock() . ' ']);
|
$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()]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue