From 4dff532d064e607c6b0771d1b083aa198a0e79bf Mon Sep 17 00:00:00 2001 From: baichou Date: Tue, 18 Aug 2020 15:44:16 +0800 Subject: [PATCH 1/2] fix:May be written to an empty log --- src/Watchers/LogWatcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Watchers/LogWatcher.php b/src/Watchers/LogWatcher.php index 08574cdeb..5578e64bc 100644 --- a/src/Watchers/LogWatcher.php +++ b/src/Watchers/LogWatcher.php @@ -36,7 +36,7 @@ public function recordLog(MessageLogged $event) Telescope::recordLog( IncomingEntry::make([ 'level' => $event->level, - 'message' => $event->message, + 'message' => (string)$event->message, 'context' => Arr::except($event->context, ['telescope']), ])->tags($this->tags($event)) ); From ae92980fadc2f71444c6599136ee7060c94c12fb Mon Sep 17 00:00:00 2001 From: baichou Date: Tue, 18 Aug 2020 15:56:32 +0800 Subject: [PATCH 2/2] fix:styleci --- src/Watchers/LogWatcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Watchers/LogWatcher.php b/src/Watchers/LogWatcher.php index 5578e64bc..1bf905ba7 100644 --- a/src/Watchers/LogWatcher.php +++ b/src/Watchers/LogWatcher.php @@ -36,7 +36,7 @@ public function recordLog(MessageLogged $event) Telescope::recordLog( IncomingEntry::make([ 'level' => $event->level, - 'message' => (string)$event->message, + 'message' => (string) $event->message, 'context' => Arr::except($event->context, ['telescope']), ])->tags($this->tags($event)) );