mysql - Logging fewer entries into Yii console.log -
I have an application with many concurrent console jobs in a database I want to launch specific examples of Can anyone please help me understand how to do this? Thanks a lot! Regards. I have decided to modify the log statement in yii / framwework / db / cdbcommand.php which That was failing SQL logging. I changed it to a trace statement: Yii :: Trace (Yii :: t ('yii', 'cdb comand :: {method} () failed: {error}. SQL statement executed Was done: {Sql}. ', Array (' {method} '=> $ method,' {error} '= & gt; $ message,' {sql} '=> $ this-> ; GetText (). $ Par)), Cloger :: Levellier, 'System DB CDDB Commands'); I'm catching the exception and logging a more compact version of the sentence, so it's okay for me. / P> This was the easiest way to get what we could get we do not update Yii often, so if we go to the next version, then I may repeat the change. Yii due to high concurrency Sometimes I get MySQL deadlock errors Sometimes it can be too much
console.log The file gets very big, and it translates more expenses.
CDbException , or at least
YII__DEBUG has already been commented .
Comments
Post a Comment