diff --git a/src/Logging/LogWatcher.php b/src/Logging/LogWatcher.php index e48eaf4..2937848 100644 --- a/src/Logging/LogWatcher.php +++ b/src/Logging/LogWatcher.php @@ -19,7 +19,11 @@ public function register(): void 'context' => $message->context, ]; - $this->client->post('debug/log', $payload); + try { + $this->client->post('debug/log', $payload); + } catch (\Throwable $e) { + // The server might not be running, or the connection could fail, hiding the error. + } }); } }