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:
parent
81fc0c9afc
commit
0ce1634c9d
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/var/log/airtime/zendphp.log {
|
||||
/var/log/libretime/legacy.log {
|
||||
compress
|
||||
rotate 10
|
||||
size 1000k
|
||||
|
|
|
@ -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());
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue