Skip to content

Replace $verbose with VERBOSITY_VERBOSE for scanFiles method - #11968

Merged
kesselb merged 2 commits into
masterfrom
feature/noid/drop-verbose-appscan
Nov 6, 2018
Merged

Replace $verbose with VERBOSITY_VERBOSE for scanFiles method#11968
kesselb merged 2 commits into
masterfrom
feature/noid/drop-verbose-appscan

Conversation

@kesselb

Copy link
Copy Markdown
Contributor

Follow-up #11831

This pr replace if ($verbose) with OutputInterface::VERBOSITY_VERBOSE

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
@kesselbkesselb added the 3. to review Waiting for reviews label Oct 21, 2018
@kesselbkesselb added this to the Nextcloud 15 milestone Oct 21, 2018

@ChristophWurstChristophWurst left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't mix such changes. Let's just adjust the verbosity output logic in this PR.

}
$scanner->listen('\OC\Files\Utils\Scanner', 'scanFile', function($path) use ($output) {
$scanner->listen('\OC\Files\Utils\Scanner', 'scanFile', function ($path) use ($output) {
$output->writeln("\tFile\t<info>$path</info>", OutputInterface::VERBOSITY_VERBOSE);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please don't change these unrelated commands. It's fine to fix/enhance this in another PR though.

});

$scanner->listen('\OC\Files\Utils\Scanner', 'scanFolder', function ($path) use ($output) {
$output->writeln("\tFolder\t<info>$path</info>", OutputInterface::VERBOSITY_VERBOSE);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

}

$output->writeln("\nScanning AppData for files");
$output->writeln('Scanning AppData for files');

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

protected function presentStats(OutputInterface $output) {
// Stop the timer
$this->execTime += microtime(true);
$output->writeln("");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

@ChristophWurstChristophWurst left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't change the command logic (post increment, output formatting) in this PR 😉

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
@MorrisJobke

Copy link
Copy Markdown
Member

Let's close this one in favor of #11831

@MorrisJobke
MorrisJobke deleted the feature/noid/drop-verbose-appscan branch November 5, 2018 23:35
@MorrisJobke
MorrisJobke restored the feature/noid/drop-verbose-appscan branch November 5, 2018 23:35
@MorrisJobkeMorrisJobke reopened this Nov 5, 2018
@MorrisJobke

Copy link
Copy Markdown
Member

Let's close this one in favor of #11831

I just realized that it is for a different command.

@MorrisJobkeMorrisJobke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works 👍 Code looks good

@MorrisJobkeMorrisJobke mentioned this pull request Nov 6, 2018
29 tasks
@kesselb

Copy link
Copy Markdown
ContributorAuthor

@ChristophWurst 🏓

@kesselb
kesselb merged commit ccd89f3 into masterNov 6, 2018
@ChristophWurst
ChristophWurst deleted the feature/noid/drop-verbose-appscan branch November 6, 2018 13:53
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsenhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@kesselb@MorrisJobke@ChristophWurst