Skip to content

Commit de9640a

Browse files
committed
Merge branch '3.x' into 3.next
2 parents e42f30a + 9956106 commit de9640a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Database/Log/CakeSentryLog.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ public function role(): string
163163
*/
164164
public function log($level, string|Stringable $message, array $context = []): void
165165
{
166+
// Return early when elastic search provides no query
167+
if (empty($context['query'])) {
168+
return;
169+
}
166170
/** @var \Cake\Database\Log\LoggedQuery $query */
167171
$query = $context['query'];
168172

0 commit comments

Comments
 (0)