change trace token
This commit is contained in:
parent
859a637f42
commit
ba73f15afa
|
@ -119,14 +119,14 @@ class ActiveQuery extends Query implements ActiveQueryInterface
|
||||||
{
|
{
|
||||||
$statement = $this->createCommand();
|
$statement = $this->createCommand();
|
||||||
$token = $this->getRawAql($statement);
|
$token = $this->getRawAql($statement);
|
||||||
Yii::info($token, __METHOD__);
|
Yii::info($token, 'devgroup\arangodb\Query::query');
|
||||||
try {
|
try {
|
||||||
Yii::beginProfile($token, __METHOD__);
|
Yii::beginProfile($token, 'devgroup\arangodb\Query::query');
|
||||||
$cursor = $statement->execute();
|
$cursor = $statement->execute();
|
||||||
$rows = $cursor->getAll();
|
$rows = $cursor->getAll();
|
||||||
Yii::endProfile($token, __METHOD__);
|
Yii::endProfile($token, 'devgroup\arangodb\Query::query');
|
||||||
} catch (\Exception $ex) {
|
} catch (\Exception $ex) {
|
||||||
Yii::endProfile($token, __METHOD__);
|
Yii::endProfile($token, 'devgroup\arangodb\Query::query');
|
||||||
throw new \Exception($ex->getMessage(), (int) $ex->getCode(), $ex);
|
throw new \Exception($ex->getMessage(), (int) $ex->getCode(), $ex);
|
||||||
}
|
}
|
||||||
if (!empty($rows)) {
|
if (!empty($rows)) {
|
||||||
|
|
|
@ -49,14 +49,14 @@ class Connection extends Object
|
||||||
|
|
||||||
$token = 'Opening ArangoDB connection: ' . $this->connectionOptions[ConnectionOptions::OPTION_ENDPOINT];
|
$token = 'Opening ArangoDB connection: ' . $this->connectionOptions[ConnectionOptions::OPTION_ENDPOINT];
|
||||||
try {
|
try {
|
||||||
Yii::info($token, __METHOD__);
|
Yii::info($token, 'devgroup\arangodb\Connection::open');
|
||||||
Yii::beginProfile($token, __METHOD__);
|
Yii::beginProfile($token, 'devgroup\arangodb\Connection::open');
|
||||||
$this->connection = new ArangoDbConnection($this->connectionOptions);
|
$this->connection = new ArangoDbConnection($this->connectionOptions);
|
||||||
$this->collectionHandler = new CollectionHandler($this->connection);
|
$this->collectionHandler = new CollectionHandler($this->connection);
|
||||||
$this->documentHandler = new DocumentHandler($this->connection);
|
$this->documentHandler = new DocumentHandler($this->connection);
|
||||||
Yii::endProfile($token, __METHOD__);
|
Yii::endProfile($token, 'devgroup\arangodb\Connection::open');
|
||||||
} catch (\Exception $ex) {
|
} catch (\Exception $ex) {
|
||||||
Yii::endProfile($token, __METHOD__);
|
Yii::endProfile($token, 'devgroup\arangodb\Connection::open');
|
||||||
throw new \Exception($ex->getMessage(), (int) $ex->getCode(), $ex);
|
throw new \Exception($ex->getMessage(), (int) $ex->getCode(), $ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
24
Query.php
24
Query.php
|
@ -491,13 +491,13 @@ class Query extends Component implements QueryInterface
|
||||||
{
|
{
|
||||||
$statement = $this->createCommand();
|
$statement = $this->createCommand();
|
||||||
$token = $this->getRawAql($statement);
|
$token = $this->getRawAql($statement);
|
||||||
Yii::info($token, __METHOD__);
|
Yii::info($token, 'devgroup\arangodb\Query::query');
|
||||||
try {
|
try {
|
||||||
Yii::beginProfile($token, __METHOD__);
|
Yii::beginProfile($token, 'devgroup\arangodb\Query::query');
|
||||||
$cursor = $statement->execute();
|
$cursor = $statement->execute();
|
||||||
Yii::endProfile($token, __METHOD__);
|
Yii::endProfile($token, 'devgroup\arangodb\Query::query');
|
||||||
} catch (\Exception $ex) {
|
} catch (\Exception $ex) {
|
||||||
Yii::endProfile($token, __METHOD__);
|
Yii::endProfile($token, 'devgroup\arangodb\Query::query');
|
||||||
throw new \Exception($ex->getMessage(), (int) $ex->getCode(), $ex);
|
throw new \Exception($ex->getMessage(), (int) $ex->getCode(), $ex);
|
||||||
}
|
}
|
||||||
return $cursor->getAll();
|
return $cursor->getAll();
|
||||||
|
@ -508,13 +508,13 @@ class Query extends Component implements QueryInterface
|
||||||
$this->limit(1);
|
$this->limit(1);
|
||||||
$statement = $this->createCommand();
|
$statement = $this->createCommand();
|
||||||
$token = $this->getRawAql($statement);
|
$token = $this->getRawAql($statement);
|
||||||
Yii::info($token, __METHOD__);
|
Yii::info($token, 'devgroup\arangodb\Query::query');
|
||||||
try {
|
try {
|
||||||
Yii::beginProfile($token, __METHOD__);
|
Yii::beginProfile($token, 'devgroup\arangodb\Query::query');
|
||||||
$cursor = $statement->execute();
|
$cursor = $statement->execute();
|
||||||
Yii::endProfile($token, __METHOD__);
|
Yii::endProfile($token, 'devgroup\arangodb\Query::query');
|
||||||
} catch (\Exception $ex) {
|
} catch (\Exception $ex) {
|
||||||
Yii::endProfile($token, __METHOD__);
|
Yii::endProfile($token, 'devgroup\arangodb\Query::query');
|
||||||
throw new \Exception($ex->getMessage(), (int) $ex->getCode(), $ex);
|
throw new \Exception($ex->getMessage(), (int) $ex->getCode(), $ex);
|
||||||
}
|
}
|
||||||
$result = $cursor->getAll();
|
$result = $cursor->getAll();
|
||||||
|
@ -543,13 +543,13 @@ class Query extends Component implements QueryInterface
|
||||||
$statement = $this->createCommand();
|
$statement = $this->createCommand();
|
||||||
$statement->setCount(true);
|
$statement->setCount(true);
|
||||||
$token = $this->getRawAql($statement);
|
$token = $this->getRawAql($statement);
|
||||||
Yii::info($token, __METHOD__);
|
Yii::info($token, 'devgroup\arangodb\Query::query');
|
||||||
try {
|
try {
|
||||||
Yii::beginProfile($token, __METHOD__);
|
Yii::beginProfile($token, 'devgroup\arangodb\Query::query');
|
||||||
$cursor = $statement->execute();
|
$cursor = $statement->execute();
|
||||||
Yii::endProfile($token, __METHOD__);
|
Yii::endProfile($token, 'devgroup\arangodb\Query::query');
|
||||||
} catch (\Exception $ex) {
|
} catch (\Exception $ex) {
|
||||||
Yii::endProfile($token, __METHOD__);
|
Yii::endProfile($token, 'devgroup\arangodb\Query::query');
|
||||||
throw new \Exception($ex->getMessage(), (int) $ex->getCode(), $ex);
|
throw new \Exception($ex->getMessage(), (int) $ex->getCode(), $ex);
|
||||||
}
|
}
|
||||||
return $cursor->getCount();
|
return $cursor->getCount();
|
||||||
|
|
Loading…
Reference in New Issue