Hello all,
I have a bit of a strange problem. In my code I have the following configuration for logging
'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [
[
'class' => 'yii\log\FileTarget',
//'levels' => YII_DEBUG ? ['error', 'warning'] : ['error'], //, 'profile'],
'levels' => ['error', 'warning'],
'except' => [
'yii\i18n\I18N::format',
'yii\web\HttpException:400',
'yii\web\HttpException:404',
],
],
[
'class' => 'app\components\EmailTarget',
//'levels' => YII_DEBUG ? ['error', 'warning'] : ['error'],
'levels' => ['error', 'warning'],
'message' => [
'from' => YII_DEBUG ? ['backoffice@*****'] : ['backoffice@*****'],
'to' => ['*****'],
'subject' => 'CMS3 Backoffice Error Log',
],
'except' => [
'yii\i18n\I18N::format',
'yii\web\HttpException:400',
'yii\web\HttpException:401',
'yii\web\HttpException:404',
],
]
],
],
Three days ago I started receiving many error log mails, and after trying to understand if the application has some kind of problem, I noticed that the same emails keep coming every day. So today (22-02) I am receiving emais from 19-02 even though I have seen them and some times deleted them. I also tried removing the EmailTarget from my application logging, but the mails appear again. Does anyone have any idea where I can find the queue of the EmailTarget? My guess is that something does not get cleared properly there?
Any ideas are welcome. Thank you for your time,
Eleni