Skip to content

Commit

Permalink
Refs #7365, add log statement to core\Console.php when plugins fail t…
Browse files Browse the repository at this point in the history
…o load.
  • Loading branch information
diosmosis committed Mar 10, 2015
1 parent 1a6e64a commit 42da3f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/Console.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ public function doRun(InputInterface $input, OutputInterface $output)
self::initPlugins();
} catch(\Exception $e) {
// Piwik not installed yet, no config file?
Log::debug("Could not initialize plugins: " . $e->getMessage() . "\n" . $e->getTraceAsString());
}

$commands = $this->getAvailableCommands();
Expand Down Expand Up @@ -139,7 +141,6 @@ protected function initConfig(OutputInterface $output)
try {
$config->checkLocalConfigFound();
return $config;

} catch (\Exception $e) {
$output->writeln($e->getMessage() . "\n");
}
Expand Down

0 comments on commit 42da3f8

Please sign in to comment.