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

View File

@@ -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));
}
}