Commit 8053d8e9 by Taylor Otwell

Call the configuration "logger" when writing logs in the error class.

parent f54ef2b4
...@@ -44,7 +44,7 @@ class Error { ...@@ -44,7 +44,7 @@ class Error {
if (Config::get('error.log')) if (Config::get('error.log'))
{ {
Log::error($message.' in '.$e->getFile().' on line '.$e->getLine()); call_user_func(Config::get('error.logger'), $severity, $message.' in '.$e->getFile().' on line '.$e->getLine());
} }
static::show($e, $severity, $message, $file); static::show($e, $severity, $message, $file);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment