Commit 423ce837 by Qiang Xue

adjusted log place.

parent 33f4a142
...@@ -197,6 +197,8 @@ class UrlManager extends Component ...@@ -197,6 +197,8 @@ class UrlManager extends Component
return false; return false;
} }
Yii::trace('No matching URL rules. Using default URL parsing logic.', __METHOD__);
$suffix = (string)$this->suffix; $suffix = (string)$this->suffix;
if ($suffix !== '' && $pathInfo !== '') { if ($suffix !== '' && $pathInfo !== '') {
$n = strlen($this->suffix); $n = strlen($this->suffix);
...@@ -212,14 +214,13 @@ class UrlManager extends Component ...@@ -212,14 +214,13 @@ class UrlManager extends Component
} }
} }
Yii::trace('No matching URL rules. Using default URL parsing logic.', __METHOD__);
return [$pathInfo, []]; return [$pathInfo, []];
} else { } else {
Yii::trace('Pretty URL not enabled. Using default URL parsing logic.', __METHOD__);
$route = $request->get($this->routeVar); $route = $request->get($this->routeVar);
if (is_array($route)) { if (is_array($route)) {
$route = ''; $route = '';
} }
Yii::trace('Pretty URL not enabled. Using default URL parsing logic.', __METHOD__);
return [(string)$route, []]; return [(string)$route, []];
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment