Authored by wuxiao

修改接口日志设置

@@ -15,6 +15,8 @@ if (!YII_ENV_TEST) { @@ -15,6 +15,8 @@ if (!YII_ENV_TEST) {
15 $config['modules']['8FmTQbUC'] = [ 15 $config['modules']['8FmTQbUC'] = [
16 'class' => 'yii\debug\Module', 16 'class' => 'yii\debug\Module',
17 'allowedIPs' => ['*'], 17 'allowedIPs' => ['*'],
  18 + 'historySize'=> 100000,
  19 + 'dataPath' => is_dir('/dev/shm') ? '/dev/shm/debug' : '@runtime/debug',
18 ]; 20 ];
19 } 21 }
20 22
@@ -25,13 +25,13 @@ return [ @@ -25,13 +25,13 @@ return [
25 'name' => 'advanced-frontend', 25 'name' => 'advanced-frontend',
26 ], 26 ],
27 'log' => [ 27 'log' => [
28 - 'traceLevel' => YII_DEBUG ? 3 : 0, 28 + /*'traceLevel' => YII_DEBUG ? 3 : 0,
29 'targets' => [ 29 'targets' => [
30 [ 30 [
31 'class' => 'yii\log\FileTarget', 31 'class' => 'yii\log\FileTarget',
32 'levels' => ['error', 'warning'], 32 'levels' => ['error', 'warning'],
33 ], 33 ],
34 - ], 34 + ],*/
35 ], 35 ],
36 'errorHandler' => [ 36 'errorHandler' => [
37 //'errorAction' => 'site/error', 37 //'errorAction' => 'site/error',