diff --git a/Vagrantfile b/Vagrantfile index 4d0f2b62..70d78268 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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", diff --git a/src/Utils/LogManager.php b/src/Utils/LogManager.php index 80e20a35..34967473 100644 --- a/src/Utils/LogManager.php +++ b/src/Utils/LogManager.php @@ -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)); } }