瀏覽代碼

Reverted last commit

Kai 14 年之前
父節點
當前提交
a45d3eeeb6
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      src/Symfony/Bundle/FrameworkBundle/Controller/ControllerNameParser.php

+ 6 - 6
src/Symfony/Bundle/FrameworkBundle/Controller/ControllerNameParser.php

@@ -76,17 +76,17 @@ class ControllerNameParser
 
     private function handleControllerNotFoundException($bundle, $controller, array $logs)
     {
-        // just one log, return it as the exception
-        if (1 == count($logs)) {
-            throw new \InvalidArgumentException($logs[0]);
-        }
-        
         if (null !== $this->logger) {
             foreach ($logs as $log) {
-                $this->logger->error($log);
+                $this->logger->info($log);
             }
         }
 
+        // just one log, return it as the exception
+        if (1 == count($logs)) {
+            throw new \InvalidArgumentException($logs[0]);
+        }
+
         // many logs, use a message that mentions each searched bundle
         $names = array();
         foreach ($this->kernel->getBundle($bundle, false) as $b) {