From d1c41fe1443f0337dbf841eb6cb0a59abd8a3b20 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Sat, 10 Aug 2013 12:22:32 -0400 Subject: [PATCH] changed to trace from info. --- framework/yii/base/Action.php | 2 +- framework/yii/base/InlineAction.php | 2 +- framework/yii/base/Model.php | 2 +- framework/yii/base/View.php | 2 +- framework/yii/db/Command.php | 5 ++--- framework/yii/debug/panels/LogPanel.php | 2 +- framework/yii/web/AssetBundle.php | 1 + framework/yii/web/AssetConverter.php | 2 +- framework/yii/web/UrlManager.php | 6 +++--- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/framework/yii/base/Action.php b/framework/yii/base/Action.php index 1a56cec..a4ae163 100644 --- a/framework/yii/base/Action.php +++ b/framework/yii/base/Action.php @@ -77,7 +77,7 @@ class Action extends Component throw new InvalidConfigException(get_class($this) . ' must define a "run()" method.'); } $args = $this->controller->bindActionParams($this, $params); - Yii::info('Running action: ' . get_class($this) . '::run()', __METHOD__); + Yii::trace('Running action: ' . get_class($this) . '::run()', __METHOD__); if (Yii::$app->requestedParams === null) { Yii::$app->requestedParams = $args; } diff --git a/framework/yii/base/InlineAction.php b/framework/yii/base/InlineAction.php index 561fd1a..a669563 100644 --- a/framework/yii/base/InlineAction.php +++ b/framework/yii/base/InlineAction.php @@ -46,7 +46,7 @@ class InlineAction extends Action public function runWithParams($params) { $args = $this->controller->bindActionParams($this, $params); - Yii::info('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__); + Yii::trace('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__); if (Yii::$app->requestedParams === null) { Yii::$app->requestedParams = $args; } diff --git a/framework/yii/base/Model.php b/framework/yii/base/Model.php index f1f1072..82083da 100644 --- a/framework/yii/base/Model.php +++ b/framework/yii/base/Model.php @@ -571,7 +571,7 @@ class Model extends Component implements IteratorAggregate, ArrayAccess public function onUnsafeAttribute($name, $value) { if (YII_DEBUG) { - \Yii::info("Failed to set unsafe attribute '$name' in '" . get_class($this) . "'.", __METHOD__); + Yii::trace("Failed to set unsafe attribute '$name' in '" . get_class($this) . "'.", __METHOD__); } } diff --git a/framework/yii/base/View.php b/framework/yii/base/View.php index 1661ffb..c75c124 100644 --- a/framework/yii/base/View.php +++ b/framework/yii/base/View.php @@ -269,7 +269,7 @@ class View extends Component $renderer = $this->renderers[$ext]; $output = $renderer->render($this, $viewFile, $params); } else { - Yii::info("Rendering view file: $viewFile", __METHOD__); + Yii::trace("Rendering view file: $viewFile", __METHOD__); $output = $this->renderPhpFile($viewFile, $params); } $this->afterRender($viewFile, $output); diff --git a/framework/yii/db/Command.php b/framework/yii/db/Command.php index bf93a2c..feb6c5e 100644 --- a/framework/yii/db/Command.php +++ b/framework/yii/db/Command.php @@ -275,7 +275,7 @@ class Command extends \yii\base\Component $rawSql = $this->getRawSql(); - Yii::info($rawSql, __METHOD__); + Yii::trace($rawSql, __METHOD__); if ($sql == '') { return 0; @@ -377,10 +377,9 @@ class Command extends \yii\base\Component private function queryInternal($method, $fetchMode = null) { $db = $this->db; - $sql = $this->getSql(); $rawSql = $this->getRawSql(); - Yii::info($rawSql, __METHOD__); + Yii::trace($rawSql, __METHOD__); /** @var $cache \yii\caching\Cache */ if ($db->enableQueryCache && $method !== '') { diff --git a/framework/yii/debug/panels/LogPanel.php b/framework/yii/debug/panels/LogPanel.php index 68f2f7f..1847f8c 100644 --- a/framework/yii/debug/panels/LogPanel.php +++ b/framework/yii/debug/panels/LogPanel.php @@ -74,7 +74,7 @@ EOD; $class = ''; } $level = Logger::getLevelName($level); - $rows[] = "$time$level$category$message"; + $rows[] = "$time$level$category
$message
"; } $rows = implode("\n", $rows); return << escapeshellarg("$basePath/$result"), )); exec($command, $output); - Yii::info("Converted $asset into $result: " . implode("\n", $output), __METHOD__); + Yii::trace("Converted $asset into $result: " . implode("\n", $output), __METHOD__); } return $result; } diff --git a/framework/yii/web/UrlManager.php b/framework/yii/web/UrlManager.php index ce93548..6617947 100644 --- a/framework/yii/web/UrlManager.php +++ b/framework/yii/web/UrlManager.php @@ -172,7 +172,7 @@ class UrlManager extends Component /** @var $rule UrlRule */ foreach ($this->rules as $rule) { if (($result = $rule->parseRequest($this, $request)) !== false) { - Yii::info("Request parsed with URL rule: {$rule->name}", __METHOD__); + Yii::trace("Request parsed with URL rule: {$rule->name}", __METHOD__); return $result; } } @@ -196,14 +196,14 @@ class UrlManager extends Component } } - Yii::info('No matching URL rules. Using default URL parsing logic.', __METHOD__); + Yii::trace('No matching URL rules. Using default URL parsing logic.', __METHOD__); return array($pathInfo, array()); } else { $route = $request->get($this->routeVar); if (is_array($route)) { $route = ''; } - Yii::info('Pretty URL not enabled. Using default URL parsing logic.', __METHOD__); + Yii::trace('Pretty URL not enabled. Using default URL parsing logic.', __METHOD__); return array((string)$route, array()); } }