Add locale to error log

This commit is contained in:
Hillel Coren 2018-03-20 13:56:55 +02:00
parent ec7b4fe393
commit a60560cdd6

View File

@ -435,6 +435,7 @@ class Utils
'url' => Input::get('url', Request::url()), 'url' => Input::get('url', Request::url()),
'previous' => url()->previous(), 'previous' => url()->previous(),
'user_agent' => isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '', 'user_agent' => isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '',
'locale' => App::getLocale(),
'ip' => Request::getClientIp(), 'ip' => Request::getClientIp(),
'count' => Session::get('error_count', 0), 'count' => Session::get('error_count', 0),
'is_console' => App::runningInConsole() ? 'yes' : 'no', 'is_console' => App::runningInConsole() ? 'yes' : 'no',