yiisoft / yii2-mongodb

Yii 2 MongoDB extension
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
326 stars 191 forks source link

A lot of noise in logs that can no be excepted #307

Closed Plisio closed 4 years ago

Plisio commented 4 years ago

Hello, When I enable info logs I get a lot of noise such:

2020-04-14 08:24:29 [-][-][-][info][yii\mongodb\Query::fetchRows] fetch cursor id = 0
2020-04-14 08:24:29 [-][-][-][info][yii\mongodb\Query::fetchRows] fetch cursor id = 0
2020-04-14 08:24:29 [-][-][-][info][yii\mongodb\Query::fetchRows] fetch cursor id = 0

Adding

'except' => ['yii\db\*', 'yii\mongodb\*'],

has no effect.

And I can not omit it. Could you add some category for these Yii::info logs or advice how to omit such logs? Ref: https://github.com/yiisoft/yii2-mongodb/blob/837c14c8a38055cd97d6f8b551eef27616f3c8c5/src/Query.php#L216 And others: https://github.com/yiisoft/yii2-mongodb/blob/837c14c8a38055cd97d6f8b551eef27616f3c8c5/src/Command.php#L811 https://github.com/yiisoft/yii2-mongodb/blob/837c14c8a38055cd97d6f8b551eef27616f3c8c5/src/BatchQueryResult.php#L134

Thanks!

Plisio commented 4 years ago

Seems after restarting docker except option has been applied