Merge branch 'ent-10585-diagnostic-info-no-tiene-en-cuenta-los-path-personalizados' into 'develop'

Ent 10585 diagnostic info no tiene en cuenta los path personalizados

See merge request artica/pandorafms!5571
This commit is contained in:
Diego Muñoz-Reja 2023-04-19 08:09:42 +00:00
commit 541de77b17
1 changed files with 6 additions and 2 deletions

View File

@ -1032,10 +1032,14 @@ class Diagnostics extends Wizard
$unit = 'M';
$pathServerLogs = '/var/log/pandora/pandora_server.log';
$logs_directory = (empty($config['server_log_dir']) === false)
? io_safe_output($config['server_log_dir'])
: '/var/log/pandora';
$pathServerLogs = $logs_directory.'/pandora_server.log';
$servers = $this->getLogInfo($pathServerLogs);
$pathErrLogs = '/var/log/pandora/pandora_server.error';
$pathErrLogs = $logs_directory.'/pandora_server.error';
$errors = $this->getLogInfo($pathErrLogs);
$pathConsoleLogs = $config['homedir'].'/log/console.log';