@@ -53,22 +53,22 @@ public function getIsActive(){
5353 */
5454 public function start ($ transactionOptions = []){
5555 Command::prepareCPOptions ($ transactionOptions );
56- yii:: trace ('Starting mongodb transaction ... ' , __METHOD__ );
56+ Yii:: debug ('Starting mongodb transaction ... ' , __METHOD__ );
5757 if ($ this ->clientSession ->mongoSession ->isInTransaction ())
5858 throw new Exception ('Nested transaction not supported ' );
5959 $ this ->clientSession ->db ->trigger (Connection::EVENT_START_TRANSACTION );
6060 $ this ->clientSession ->mongoSession ->startTransaction ($ transactionOptions );
61- yii:: trace ('MongoDB transaction started. ' , __METHOD__ );
61+ Yii:: debug ('MongoDB transaction started. ' , __METHOD__ );
6262 }
6363
6464 /**
6565 * Commit a transaction.
6666 * @see https://www.php.net/manual/en/mongodb-driver-session.committransaction.php
6767 */
6868 public function commit (){
69- yii:: trace ('Committing mongodb transaction ... ' , __METHOD__ );
69+ Yii:: debug ('Committing mongodb transaction ... ' , __METHOD__ );
7070 $ this ->clientSession ->mongoSession ->commitTransaction ();
71- yii:: trace ('Commit mongodb transaction. ' , __METHOD__ );
71+ Yii:: debug ('Commit mongodb transaction. ' , __METHOD__ );
7272 $ this ->clientSession ->db ->trigger (Connection::EVENT_COMMIT_TRANSACTION );
7373 }
7474
@@ -77,9 +77,9 @@ public function commit(){
7777 * @see https://www.php.net/manual/en/mongodb-driver-session.aborttransaction.php
7878 */
7979 public function rollBack (){
80- yii:: trace ('Rolling back mongodb transaction ... ' , __METHOD__ );
80+ Yii:: debug ('Rolling back mongodb transaction ... ' , __METHOD__ );
8181 $ this ->clientSession ->mongoSession ->abortTransaction ();
82- yii:: trace ('Roll back mongodb transaction. ' , __METHOD__ );
82+ Yii:: debug ('Roll back mongodb transaction. ' , __METHOD__ );
8383 $ this ->clientSession ->db ->trigger (Connection::EVENT_ROLLBACK_TRANSACTION );
8484 }
8585}
0 commit comments