Yii2 frontend\runtime\debug\mail 文件夹变得很重!我可以停止此日志记录吗?
Yii2 frontend\runtime\debug\mail folder gets very heavy! Can I stop this logging?
Yii2 将我发送的每封邮件记录为 .eml 文件并存储到 frontend\runtime\debug\mail。这个文件夹变得很重,占用了我所有的服务器 space。有没有办法阻止它。我正在使用 swift 邮件程序。
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
'viewPath' => '@common/mail',
'transport' => [
'class' => 'Swift_SmtpTransport',
'host' => 'smtp.gmail.com',
'username' => *******,
'password' => *****,
'port' => '465',
'encryption' => 'ssl',
],
],
发生这种情况是因为您打开了 yii2-debug 模块。您需要将其从生产服务器中删除 - 这旨在仅用于非生产环境以进行测试和调试。
更新 yii2-debug。此错误已在 v2.0.15
中修复
php composer.phar update yiisoft/yii2-debug
Yii2 将我发送的每封邮件记录为 .eml 文件并存储到 frontend\runtime\debug\mail。这个文件夹变得很重,占用了我所有的服务器 space。有没有办法阻止它。我正在使用 swift 邮件程序。
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
'viewPath' => '@common/mail',
'transport' => [
'class' => 'Swift_SmtpTransport',
'host' => 'smtp.gmail.com',
'username' => *******,
'password' => *****,
'port' => '465',
'encryption' => 'ssl',
],
],
发生这种情况是因为您打开了 yii2-debug 模块。您需要将其从生产服务器中删除 - 这旨在仅用于非生产环境以进行测试和调试。
更新 yii2-debug。此错误已在 v2.0.15
中修复php composer.phar update yiisoft/yii2-debug