feat(legacy): rename log filepath (#1551)

BREAKING CHANGE: moved legacy log file from '/var/log/airtime/zendphp.log' to '/var/log/libretime/legacy.log'
This commit is contained in:
Jonas L 2022-01-31 10:27:53 +01:00 committed by GitHub
parent 81fc0c9afc
commit 0ce1634c9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 6 deletions

View File

@ -13,7 +13,7 @@ if (!isset($configRun) || !$configRun) {
require_once CONFIG_PATH . 'constants.php';
Logging::setLogPath(LIBRETIME_LOG_DIR . '/zendphp.log');
Logging::setLogPath(LIBRETIME_LOG_DIR . '/legacy.log');
Zend_Session::setOptions(['strict' => true]);
Config::setAirtimeVersion();

View File

@ -76,7 +76,7 @@ $application = new Zend_Application(
);
require_once APPLICATION_PATH . 'logging/Logging.php';
Logging::setLogPath(LIBRETIME_LOG_DIR . '/zendphp.log');
Logging::setLogPath(LIBRETIME_LOG_DIR . '/legacy.log');
Logging::setupParseErrorLogging();
// Create application, bootstrap, and run

View File

@ -36,7 +36,7 @@ define('LIBRETIME_MAJOR_VERSION', '3');
// grab values from env (i'll do this everywhere with a small function if we like it)
define('LIBRETIME_CONF_DIR', getenv('LIBRETIME_CONF_DIR') ? getenv('LIBRETIME_CONF_DIR') : '/etc/airtime');
define('LIBRETIME_LOG_DIR', getenv('LIBRETIME_LOG_DIR') ? getenv('LIBRETIME_LOG_DIR') : '/var/log/airtime');
define('LIBRETIME_LOG_DIR', getenv('LIBRETIME_LOG_DIR') ? getenv('LIBRETIME_LOG_DIR') : '/var/log/libretime');
// Defaults
define('DEFAULT_LOGO_PLACEHOLDER', 1);

View File

@ -1,4 +1,4 @@
/var/log/airtime/zendphp.log {
/var/log/libretime/legacy.log {
compress
rotate 10
size 1000k

View File

@ -48,7 +48,7 @@ set_include_path(implode(PATH_SEPARATOR, [
require_once CONFIG_PATH . '/constants.php';
Logging::setLogPath(LIBRETIME_LOG_DIR . '/zendphp.log');
Logging::setLogPath(LIBRETIME_LOG_DIR . '/legacy.log');
set_include_path(APPLICATION_PATH . '/common' . PATH_SEPARATOR . get_include_path());

View File

@ -331,7 +331,7 @@ class AirtimeInstall
{
$CC_CONFIG = Config::getConfig();
$path = AirtimeInstall::CONF_DIR_LOG;
$file = $path . '/zendphp.log';
$file = $path . '/legacy.log';
if (!file_exists($path)) {
mkdir($path, 0755, true);
}