From ba73f15afae4e919874ee6e045c890792e706057 Mon Sep 17 00:00:00 2001 From: evgen-d Date: Tue, 5 Aug 2014 09:48:52 +0400 Subject: [PATCH] change trace token --- ActiveQuery.php | 8 ++++---- Connection.php | 8 ++++---- Query.php | 24 ++++++++++++------------ 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/ActiveQuery.php b/ActiveQuery.php index b12e5ff..75fb972 100644 --- a/ActiveQuery.php +++ b/ActiveQuery.php @@ -119,14 +119,14 @@ class ActiveQuery extends Query implements ActiveQueryInterface { $statement = $this->createCommand(); $token = $this->getRawAql($statement); - Yii::info($token, __METHOD__); + Yii::info($token, 'devgroup\arangodb\Query::query'); try { - Yii::beginProfile($token, __METHOD__); + Yii::beginProfile($token, 'devgroup\arangodb\Query::query'); $cursor = $statement->execute(); $rows = $cursor->getAll(); - Yii::endProfile($token, __METHOD__); + Yii::endProfile($token, 'devgroup\arangodb\Query::query'); } catch (\Exception $ex) { - Yii::endProfile($token, __METHOD__); + Yii::endProfile($token, 'devgroup\arangodb\Query::query'); throw new \Exception($ex->getMessage(), (int) $ex->getCode(), $ex); } if (!empty($rows)) { diff --git a/Connection.php b/Connection.php index 6c2297a..f806ba3 100644 --- a/Connection.php +++ b/Connection.php @@ -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); } } diff --git a/Query.php b/Query.php index 4f4f74d..ceb8036 100644 --- a/Query.php +++ b/Query.php @@ -491,13 +491,13 @@ class Query extends Component implements QueryInterface { $statement = $this->createCommand(); $token = $this->getRawAql($statement); - Yii::info($token, __METHOD__); + Yii::info($token, 'devgroup\arangodb\Query::query'); try { - Yii::beginProfile($token, __METHOD__); + Yii::beginProfile($token, 'devgroup\arangodb\Query::query'); $cursor = $statement->execute(); - Yii::endProfile($token, __METHOD__); + Yii::endProfile($token, 'devgroup\arangodb\Query::query'); } catch (\Exception $ex) { - Yii::endProfile($token, __METHOD__); + Yii::endProfile($token, 'devgroup\arangodb\Query::query'); throw new \Exception($ex->getMessage(), (int) $ex->getCode(), $ex); } return $cursor->getAll(); @@ -508,13 +508,13 @@ class Query extends Component implements QueryInterface $this->limit(1); $statement = $this->createCommand(); $token = $this->getRawAql($statement); - Yii::info($token, __METHOD__); + Yii::info($token, 'devgroup\arangodb\Query::query'); try { - Yii::beginProfile($token, __METHOD__); + Yii::beginProfile($token, 'devgroup\arangodb\Query::query'); $cursor = $statement->execute(); - Yii::endProfile($token, __METHOD__); + Yii::endProfile($token, 'devgroup\arangodb\Query::query'); } catch (\Exception $ex) { - Yii::endProfile($token, __METHOD__); + Yii::endProfile($token, 'devgroup\arangodb\Query::query'); throw new \Exception($ex->getMessage(), (int) $ex->getCode(), $ex); } $result = $cursor->getAll(); @@ -543,13 +543,13 @@ class Query extends Component implements QueryInterface $statement = $this->createCommand(); $statement->setCount(true); $token = $this->getRawAql($statement); - Yii::info($token, __METHOD__); + Yii::info($token, 'devgroup\arangodb\Query::query'); try { - Yii::beginProfile($token, __METHOD__); + Yii::beginProfile($token, 'devgroup\arangodb\Query::query'); $cursor = $statement->execute(); - Yii::endProfile($token, __METHOD__); + Yii::endProfile($token, 'devgroup\arangodb\Query::query'); } catch (\Exception $ex) { - Yii::endProfile($token, __METHOD__); + Yii::endProfile($token, 'devgroup\arangodb\Query::query'); throw new \Exception($ex->getMessage(), (int) $ex->getCode(), $ex); } return $cursor->getCount();