Skip to content

Commit 53644dd

Browse files
committed
fix stan tools
1 parent 786b2bc commit 53644dd

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/Database/Log/DebugLog.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function log($level, string|Stringable $message, array $context = []): vo
144144
'path' => $context['request']['path'],
145145
'data' => $context['request']['data'],
146146
], JSON_PRETTY_PRINT),
147-
'took' => $took ?: 0,
147+
'took' => 0,
148148
'rows' => $context['response']['hits']['total']['value'] ?? $context['response']['hits']['total'] ?? 0,
149149
];
150150

tests/TestCase/Database/Log/DebugLogTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ public function testLog()
7373
*/
7474
public function testLogElastic()
7575
{
76-
$query = [
77-
];
78-
7976
$this->assertCount(0, $this->logger->queries());
8077

8178
$this->logger->log(LogLevel::DEBUG, 'title:Good', [

0 commit comments

Comments
 (0)