Skip to content

Commit

Permalink
Merge branch '3.x' into 3.next
Browse files Browse the repository at this point in the history
  • Loading branch information
LordSimal committed Dec 31, 2024
2 parents e42f30a + 9956106 commit de9640a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Database/Log/CakeSentryLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ public function role(): string
*/
public function log($level, string|Stringable $message, array $context = []): void
{
// Return early when elastic search provides no query
if (empty($context['query'])) {
return;
}
/** @var \Cake\Database\Log\LoggedQuery $query */
$query = $context['query'];

Expand Down

0 comments on commit de9640a

Please sign in to comment.