Update readme and fix code style issues

This commit is contained in:
Thilina Hasantha
2020-05-25 07:39:54 +02:00
parent d0be9c988b
commit 016fbe0f3b
4 changed files with 5 additions and 12 deletions

View File

@@ -25,7 +25,7 @@ class LogManager
if (defined('LOG_STDERR') && LOG_STDERR === '1') {
self::$me->log->pushHandler(new StreamHandler('php://stderr', LOG_LEVEL));
} else if (is_writable(ini_get('error_log'))) {
} elseif (is_writable(ini_get('error_log'))) {
self::$me->log->pushHandler(new StreamHandler(ini_get('error_log'), LOG_LEVEL));
} elseif (is_writable(CLIENT_BASE_PATH.'data/app.log')) {
self::$me->log->pushHandler(new StreamHandler(CLIENT_BASE_PATH.'data/app.log', LOG_LEVEL));