disable Stack trace in log

how can I disable write Stack trace in log?

I set YII_DEBUG=false and traceLevel=0 but not help

Please see this https://github.com/yiisoft/yii2/issues/12006 and feel free to chime in on the issue itself.

as I see the problem in \Exception::__toString()- it return stack trace

how can I hide stack?