Browse Source

Remove redundant setLoggers() call.

This call is no longer necessary as the logging levels are set in
ShellDispatcher.

Refs #10001
Mark Story 9 years ago
parent
commit
621ac4fd47
2 changed files with 1 additions and 2 deletions
  1. 0 1
      src/Console/Shell.php
  2. 1 1
      tests/TestCase/Console/ShellTest.php

+ 0 - 1
src/Console/Shell.php

@@ -184,7 +184,6 @@ class Shell
             ['tasks'],
             ['associative' => ['tasks']]
         );
-        $this->_io->setLoggers(true);
 
         if (isset($this->modelClass)) {
             $this->loadModel();

+ 1 - 1
tests/TestCase/Console/ShellTest.php

@@ -1318,7 +1318,7 @@ TEXT;
         $io->expects($this->at(0))
             ->method('setLoggers')
             ->with(true);
-        $io->expects($this->at(3))
+        $io->expects($this->at(2))
             ->method('setLoggers')
             ->with(ConsoleIo::QUIET);