yiisoft / yii2-debug

Debug Extension for Yii 2
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
202 stars 149 forks source link

DbPanel::excessiveCallerThreshold should be disabled by default #511

Closed PowerGamer1 closed 1 year ago

PowerGamer1 commented 1 year ago

Who's to say that default value of 5 of DbPanel::excessiveCallerThreshold is good for everyone? That value is absolutely subjective and different for different projects. As such this diagnostic should be disabled by default by allowing DbPanel::excessiveCallerThreshold to have null value which would mean diagnostic is disabled (analogous to DbPanel::criticalQueryThreshold).

DbPanel::criticalQueryThreshold should be properly documented as allowing null value which means the diagnostic is disabled (already implemented but not mentioned in its PHPDoc).