You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Info: When an HTTP exception is caught by the error handler, an error message will be logged with the category name in the format of yii\web\HttpException:ErrorCode. For example, the yii\web\NotFoundHttpException will cause an error message of category yii\web\HttpException:404.
For some reason, it was decided to set a category of the log message for http exceptions in this format.
What steps will reproduce the problem?
HttpException
, e.g.AllowedOnlyForAdminsHttpException
AllowedOnlyForAdminsHttpException
to the list ofexcept
forLogger
What is the expected result?
All
AllowedOnlyForAdminsHttpException
exceptions are skippedWhat do you get instead?
AllowedOnlyForAdminsHttpException
exceptions are still loggedAdditional info
This logic is implemented in
yii\base\ErrorHandler::logException()
method:https://github.com/yiisoft/yii2/blob/master/framework/base/ErrorHandler.php#L288
The text was updated successfully, but these errors were encountered: