change trace token

This commit is contained in:
evgen-d
2014-08-05 09:48:52 +04:00
parent 859a637f42
commit ba73f15afa
3 changed files with 20 additions and 20 deletions

View File

@@ -49,14 +49,14 @@ class Connection extends Object
$token = 'Opening ArangoDB connection: ' . $this->connectionOptions[ConnectionOptions::OPTION_ENDPOINT];
try {
Yii::info($token, __METHOD__);
Yii::beginProfile($token, __METHOD__);
Yii::info($token, 'devgroup\arangodb\Connection::open');
Yii::beginProfile($token, 'devgroup\arangodb\Connection::open');
$this->connection = new ArangoDbConnection($this->connectionOptions);
$this->collectionHandler = new CollectionHandler($this->connection);
$this->documentHandler = new DocumentHandler($this->connection);
Yii::endProfile($token, __METHOD__);
Yii::endProfile($token, 'devgroup\arangodb\Connection::open');
} catch (\Exception $ex) {
Yii::endProfile($token, __METHOD__);
Yii::endProfile($token, 'devgroup\arangodb\Connection::open');
throw new \Exception($ex->getMessage(), (int) $ex->getCode(), $ex);
}
}