Fixed typo disk logs
parent
08aeb3b84d
commit
1915649d17
|
|
@ -15,7 +15,7 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
|||
#[AsController]
|
||||
class GetDiskLogsAction extends AbstractController
|
||||
{
|
||||
private const LOG_DIR = '/var/log/ogClients/';
|
||||
private const LOG_DIR = '/var/log/ogclients/';
|
||||
|
||||
public function __construct(
|
||||
private readonly LoggerInterface $logger,
|
||||
|
|
@ -29,7 +29,7 @@ class GetDiskLogsAction extends AbstractController
|
|||
}
|
||||
|
||||
$ip = $client->getIp();
|
||||
$logPath = self::LOG_DIR . $ip . '/clieng.log';
|
||||
$logPath = self::LOG_DIR . $ip . '/client.log';
|
||||
|
||||
if (!file_exists($logPath)) {
|
||||
throw new NotFoundHttpException(sprintf('No disk log file found for client %s.', $ip));
|
||||
|
|
|
|||
Loading…
Reference in New Issue