Skip to content

Commit 2f57552

Browse files
authored
Merge pull request #967 from nextcloud/fix-tail-watch
fix logreader:tail/watch commands
2 parents 516cf17 + 70f6526 commit 2f57552

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Command/Tail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
5959
$raw = $input->getOption('raw');
6060
$count = (int)$input->getArgument('lines');
6161
$io = new SymfonyStyle($input, $output);
62-
$logIterator = $this->logIteratorFactory->getLogIterator('11111');
62+
$logIterator = $this->logIteratorFactory->getLogIterator(Watch::ALL_LEVELS);
6363
$logIterator = new \LimitIterator($logIterator, 0, $count);
6464
$logItems = iterator_to_array($logIterator);
6565
$logItems = array_reverse($logItems);

lib/Command/Watch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
class Watch extends Base {
3636
public const LEVELS = ['Debug', 'Info', 'Warning', 'Error', 'Fatal'];
37-
public const ALL_LEVELS = '11111';
37+
public const ALL_LEVELS = [0, 1, 2, 3, 4];
3838

3939
private $formatter;
4040
private $logIteratorFactory;

0 commit comments

Comments
 (0)