chore: log kegagalan FCM di level error (LOG_LEVEL=error) + gitignore storage/firebase

This commit is contained in:
Novy San87
2026-08-06 08:47:32 +07:00
parent b4d212ad0e
commit d43d99585a
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -81,14 +81,14 @@ class FcmService
->post("https://fcm.googleapis.com/v1/projects/{$this->projectId}/messages:send", $message);
if (! $response->successful()) {
Log::warning('FCM send failed: '.$response->status().' '.$response->body());
Log::error('FCM send failed: '.$response->status().' '.$response->body());
return false;
}
return true;
} catch (\Throwable $e) {
Log::warning('FCM send error: '.$e->getMessage());
Log::error('FCM send error: '.$e->getMessage());
return false;
}