diff options
author | noveens <noveen.sachdeva@research.iiit.ac.in> | 2017-03-06 18:43:03 +0530 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-03-19 23:19:54 -0600 |
commit | 8948f66d0e7341afa418fbe097d52b5a3038098b (patch) | |
tree | e163a78974e17e3e1791a2af227c99a7fc0ee0ec /lib/private/Console | |
parent | 528a903a7b23ea628e6ec2fc9a221821297c0bec (diff) | |
download | nextcloud-server-8948f66d0e7341afa418fbe097d52b5a3038098b.tar.gz nextcloud-server-8948f66d0e7341afa418fbe097d52b5a3038098b.zip |
maintenance warning printed on STDERR rather than STDOUT
redundant check removed
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Console')
-rw-r--r-- | lib/private/Console/Application.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Console/Application.php b/lib/private/Console/Application.php index 7d2f03d593e..22eb5656fcf 100644 --- a/lib/private/Console/Application.php +++ b/lib/private/Console/Application.php @@ -37,6 +37,7 @@ use Symfony\Component\Console\Application as SymfonyApplication; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; +use Symfony\Component\Console\Output\ConsoleOutputInterface; use Symfony\Component\EventDispatcher\EventDispatcherInterface; class Application { @@ -97,7 +98,8 @@ class Application { throw new NeedsUpdateException(); } elseif ($this->config->getSystemValue('maintenance', false)) { if ($input->getArgument('command') !== '_completion') { - $output->writeln("Nextcloud is in maintenance mode - no apps have been loaded"); + $errOutput = $output->getErrorOutput(); + $errOutput->writeln('<comment>ownCloud is in maintenance mode - no app have been loaded</comment>' . PHP_EOL); } } else { OC_App::loadApps(); |