]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Убираем логирование в телеграм origin/fix_fomichev_erp-20260129_hide_debug_panel_exceptions_from_telegram
authorVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Thu, 29 Jan 2026 15:10:29 +0000 (18:10 +0300)
committerVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Thu, 29 Jan 2026 15:10:29 +0000 (18:10 +0300)
erp24/config/web.php

index 25f517eb647d5dbdec0f54426729a3f700c8eeae..b2c206e64ca7186fb7962995bba9739caddedc00 100644 (file)
@@ -96,9 +96,6 @@ $config = [
                 [
                     'class' => 'app\log\TelegramTarget',
                     'levels' => ['error', 'warning'],
-                    'except' => [
-                        'yii\debug\*',  // Исключаем сообщения debug-панели
-                    ],
                    // 'categories' => ['api.error', 'js.error', 'command.error'],
                 ],
             ],
@@ -154,6 +151,7 @@ if (YII_ENV_DEV) {
     $config['modules']['debug'] = [
         'class' => 'yii\debug\Module',
         'allowedIPs' => $debugAllowedIPs,
+        'disableIpRestrictionWarning' => true,
     ];
 
     $config['bootstrap'][] = 'gii';