Skip to content

Commit

Permalink
fix(imap): Log MessageMapper not finding full text
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst committed Dec 13, 2024
1 parent 93bd41d commit c389327
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/IMAP/MessageMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ public function getFullText(Horde_Imap_Client_Socket $client,
}

if (($message = $result->first()) === null) {
\OCP\Log\logger('mail')->info('Found ' . $result->count() . ' results');

Check failure on line 495 in lib/IMAP/MessageMapper.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-master

UndefinedFunction

lib/IMAP/MessageMapper.php:495:4: UndefinedFunction: Function OCP\Log\logger does not exist (see https://psalm.dev/021)

Check warning on line 495 in lib/IMAP/MessageMapper.php

View check run for this annotation

Codecov / codecov/patch

lib/IMAP/MessageMapper.php#L495

Added line #L495 was not covered by tests
return null;
}

Expand Down

0 comments on commit c389327

Please sign in to comment.