Fix logging issue

This commit is contained in:
gamonoid
2017-09-04 08:17:50 +02:00
parent 4dff9cc104
commit 54d39ecf90
2 changed files with 3 additions and 3 deletions

4
Vagrantfile vendored
View File

@@ -10,7 +10,7 @@ Vagrant.configure(2) do |config|
config.vm.provider "virtualbox" do |vb| config.vm.provider "virtualbox" do |vb|
vb.memory = "1024" vb.memory = "1024"
vb.cpus = "2" vb.cpus = "2"
vb.name = "app.dev" vb.name = "icehrm.open"
end end
@@ -18,7 +18,7 @@ Vagrant.configure(2) do |config|
sudo apt-get update sudo apt-get update
SHELL SHELL
config.vm.hostname = "app.dev" config.vm.hostname = "icehrm.open"
config.hostsupdater.aliases = [ config.hostsupdater.aliases = [
"app.dev", "app.dev",

View File

@@ -22,7 +22,7 @@ class LogManager
self::$me->log = new Logger(APP_NAME); self::$me->log = new Logger(APP_NAME);
if (is_writable(ini_get('error_log'))) { if (is_writable(ini_get('error_log'))) {
self::$me->log->pushHandler(new StreamHandler(ini_get('error_log'), LOG_LEVEL)); 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)); self::$me->log->pushHandler(new StreamHandler(CLIENT_BASE_PATH.'data/app.log', LOG_LEVEL));
} }
} }