Fix #475 - [Legacy] Keep upgrade log

This commit is contained in:
y.yerli 2025-01-20 12:53:50 +03:00
parent 78eb20ccca
commit db9aca1460

View file

@ -1281,7 +1281,7 @@ function logThis($entry, $path='')
if (file_exists('include/utils/sugar_file_utils.php')) { if (file_exists('include/utils/sugar_file_utils.php')) {
require_once('include/utils/sugar_file_utils.php'); require_once('include/utils/sugar_file_utils.php');
} }
$log = empty($path) ? clean_path(getcwd().'/upgradeWizard.log') : clean_path($path); $log = empty($path) ? clean_path(getcwd().'/../../logs/upgrade.log') : clean_path($path);
// create if not exists // create if not exists
if (!file_exists($log)) { if (!file_exists($log)) {