We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0193317 commit 3185c26Copy full SHA for 3185c26
src/ClientSession.php
@@ -110,13 +110,15 @@ public function getId(){
110
*/
111
public static function start($db, $sessionOptions = []){
112
self::prepareOptions($sessionOptions);
113
- Yii::debug('Starting mongodb session ...', __METHOD__);
+ if($db->enableProfiling)
114
+ Yii::debug('Starting mongodb session ...', __METHOD__);
115
$db->trigger(Connection::EVENT_START_SESSION);
116
$newSession = new self([
117
'db' => $db,
118
'mongoSession' => $db->manager->startSession($sessionOptions),
119
]);
- Yii::debug('MongoDB session started.', __METHOD__);
120
121
+ Yii::debug('MongoDB session started.', __METHOD__);
122
return $newSession;
123
}
124
0 commit comments