From 68778ff2a2aad1cdc9560ee494bd4830a790f044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Bar=C3=A1=C5=A1ek?= Date: Fri, 25 Jun 2021 11:48:14 +0200 Subject: [PATCH] AbstractLogger: End event in case of first read. --- src/Logger/AbstractLogger.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Logger/AbstractLogger.php b/src/Logger/AbstractLogger.php index a04b76a..4ff3c46 100644 --- a/src/Logger/AbstractLogger.php +++ b/src/Logger/AbstractLogger.php @@ -84,6 +84,7 @@ public function stopQuery(): ?Event } $event = $this->events[$key]; + $event->end(); if ( $locked === false