Pārlūkot izejas kodu

debug条数改为10000条

ouyang 4 nedēļas atpakaļ
vecāks
revīzija
55832c97c3
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      common/config/main-local.php

+ 2 - 0
common/config/main-local.php

@@ -9,6 +9,8 @@ if (getenv('YII_ENV') == 'production') {
             'debug' => [
             'debug' => [
                 'class' => 'yii\debug\Module',
                 'class' => 'yii\debug\Module',
                 'allowedIPs' => [getenv('DEBUG_ALLOWED_IP','127.0.0.1')],
                 'allowedIPs' => [getenv('DEBUG_ALLOWED_IP','127.0.0.1')],
+                // Debug 工具栏保留的历史请求条数,默认 50 条过少
+                'historySize' => 10000,
             ],
             ],
             'gii' => [
             'gii' => [
                 'class' => 'yii\gii\Module',
                 'class' => 'yii\gii\Module',