Fix logging issue
This commit is contained in:
4
Vagrantfile
vendored
4
Vagrantfile
vendored
@@ -10,7 +10,7 @@ Vagrant.configure(2) do |config|
|
||||
config.vm.provider "virtualbox" do |vb|
|
||||
vb.memory = "1024"
|
||||
vb.cpus = "2"
|
||||
vb.name = "app.dev"
|
||||
vb.name = "icehrm.open"
|
||||
end
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ Vagrant.configure(2) do |config|
|
||||
sudo apt-get update
|
||||
SHELL
|
||||
|
||||
config.vm.hostname = "app.dev"
|
||||
config.vm.hostname = "icehrm.open"
|
||||
|
||||
config.hostsupdater.aliases = [
|
||||
"app.dev",
|
||||
|
||||
@@ -22,7 +22,7 @@ class LogManager
|
||||
self::$me->log = new Logger(APP_NAME);
|
||||
if (is_writable(ini_get('error_log'))) {
|
||||
self::$me->log->pushHandler(new StreamHandler(ini_get('error_log'), LOG_LEVEL));
|
||||
} else {
|
||||
} else if(is_writable(iCLIENT_BASE_PATH.'data/app.log')){
|
||||
self::$me->log->pushHandler(new StreamHandler(CLIENT_BASE_PATH.'data/app.log', LOG_LEVEL));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user