error logging

This commit is contained in:
Abdulrahman
2019-05-25 18:17:08 +03:00
parent d6dfc40400
commit 5f063c2c79
2 changed files with 7 additions and 1 deletions

View File

@@ -67,7 +67,12 @@ function kleeja_show_error($error_number, $error_string = '', $error_file = '',
{
switch ($error_number)
{
case E_NOTICE: case E_WARNING: case E_USER_WARNING: case E_USER_NOTICE: case E_STRICT: break;
case E_NOTICE: case E_WARNING: case E_USER_WARNING: case E_USER_NOTICE: case E_STRICT:
if (function_exists('kleeja_log'))
{
kleeja_log($error_number . ':' . basename($error_file) . ':' . $error_line .' ' . $error_string);
}
break;
default:
header('HTTP/1.1 503 Service Temporarily Unavailable');