Syslog error

Access to debugger is denied due to IP address restriction. The requesting IP address 

    1 answer 1

    Error says that debugger access is denied for this IP address.

    Solution # 1 Add this ip to the list of allowed (for example, on dev)

    In the common/config/web.php here:

     $config['modules']['debug'] = [ 'class' => yii\debug\Module::class, 'allowedIPs' => ['127.0.0.1', 'ЭТОТ_IP'], ]; 

    Decision number 2 If you do not need a debugger (for example, on prod)

    In the .env file .env set YII_DEBUG = false

    Solution # 3 Disable debugger logging.

    In the common/config/base.php add 'yii\debug\Module*' here:

     'components' => [ 'log' => [ 'targets' => [ 'db' => [ 'except' => ['yii\debug\Module*'], ], ], ], ], 

    And to prod such errors do not come in the mail, add 'yii\debug\Module*' here:

     $config['components']['log']['targets']['email'] = [ 'except' => ['yii\debug\Module*'], ];