mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Only show error stack trace on very verbose level
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
1f83979699
commit
2ffa9fc797
1 changed files with 2 additions and 6 deletions
|
|
@ -192,11 +192,6 @@ class Scan extends Base {
|
|||
$users = $input->getArgument('user_id');
|
||||
}
|
||||
|
||||
# restrict the verbosity level to VERBOSITY_VERBOSE
|
||||
if ($output->getVerbosity() > OutputInterface::VERBOSITY_VERBOSE) {
|
||||
$output->setVerbosity(OutputInterface::VERBOSITY_VERBOSE);
|
||||
}
|
||||
|
||||
# check quantity of users to be process and show it on the command line
|
||||
$users_total = count($users);
|
||||
if ($users_total === 0) {
|
||||
|
|
@ -263,7 +258,8 @@ class Scan extends Base {
|
|||
return false;
|
||||
}
|
||||
$e = new \ErrorException($message, 0, $severity, $file, $line);
|
||||
$output->writeln("\t<error>$e</error>");
|
||||
$output->writeln('<error>Error during scan: ' . $e->getMessage() . '</error>');
|
||||
$output->writeln('<error>' . $e->getTraceAsString() . '</error>', OutputInterface::VERBOSITY_VERY_VERBOSE);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue