Skip to content

Commit

Permalink
Merge pull request #32 from Liamb17/3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
LordSimal authored Dec 30, 2024
2 parents 707eb00 + 1b2e5ea commit 9c4d4fe
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'])){

Check failure on line 167 in src/Database/Log/CakeSentryLog.php

View workflow job for this annotation

GitHub Actions / Coding Standard & Static Analysis

Expected 1 space after closing parenthesis; found 0
return;
}
/** @var \Cake\Database\Log\LoggedQuery $query */
$query = $context['query'];

Expand Down

0 comments on commit 9c4d4fe

Please sign in to comment.