diff --git a/src/Watchers/JobWatcher.php b/src/Watchers/JobWatcher.php index 63a396f73..a4dae1bda 100644 --- a/src/Watchers/JobWatcher.php +++ b/src/Watchers/JobWatcher.php @@ -183,11 +183,15 @@ protected function tags(array $payload) */ protected function updateBatch($payload) { + $wasRecordingEnabled = Telescope::$shouldRecord; + Telescope::$shouldRecord = false; $command = $this->getCommand($payload['data']); - Telescope::$shouldRecord = true; + if ($wasRecordingEnabled) { + Telescope::$shouldRecord = true; + } $properties = ExtractProperties::from( $command