Hi everybody, I have a site in internet, for example named m.site.com and for testing on pc locally (with openserver) name the same m.site.com
There are logger, that send mails with errors with Mandrill, here it is (part of web.php)
'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [
[
'class' => 'yii\log\FileTarget',
'levels' => ['error'],
'except' => ['yii\web\HttpException:404', 'yii\web\HttpException:403'],
],
[
'class' => 'app\components\log\EmailMandrillTarget',
'mailer' => 'mailer',
'levels' => ['error'],
'except' => ['yii\web\HttpException:404', 'yii\web\HttpException:403'],
'template' => 'log-error-admin',
'message' => [
'from' => ['robot@m.site.com'],
'to' => ['user1@m.site.com', 'user2@m.site.com'],
'subject' => 'Error on m.site.com',
],
],
],
],
Can i disable log for my local domain? and allow only for internet domain, may be there is filter by ip-address or something?
Thank’s