Skip to content

Commit 881ce12

Browse files
author
Igor Chepurnoy
committed
Update ErrorHandler.php
1 parent 6ee0e9d commit 881ce12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/ErrorHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ErrorHandler extends \yii\console\ErrorHandler
2020
*
2121
* @param \Exception $exception the exception to be logged
2222
*/
23-
protected function logException($exception)
23+
public function logException($exception)
2424
{
2525
$category = get_class($exception);
2626
if ($exception instanceof HttpException) {
@@ -35,4 +35,4 @@ protected function logException($exception)
3535
\Yii::error((string)$exception, $category);
3636
}
3737

38-
}
38+
}

0 commit comments

Comments
 (0)