From bbce95b5eaade75ca558b003466e543a9686ae58 Mon Sep 17 00:00:00 2001
From: Automatic Release Builder <build@flightgear.org>
Date: Tue, 18 Aug 2020 16:19:14 +0100
Subject: [PATCH] Updates for sentry.io 0.4.0 API

---
 src/Main/sentryIntegration.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Main/sentryIntegration.cxx b/src/Main/sentryIntegration.cxx
index 195f8b6a0..99ff33c6a 100644
--- a/src/Main/sentryIntegration.cxx
+++ b/src/Main/sentryIntegration.cxx
@@ -85,13 +85,13 @@ void initSentry()
     sentry_options_set_database_pathw(options, homePathString.c_str());
     
     const auto logPath = (fgHomePath() / "fgfs.log").wstr();
-    sentry_options_add_attachmentw(options, "log", logPath.c_str());
+    sentry_options_add_attachmentw(options, logPath.c_str());
 #else
     const auto homePathString = dataPath.utf8Str();
     sentry_options_set_database_path(options, homePathString.c_str());
     
     const auto logPath = (fgHomePath() / "fgfs.log").utf8Str();
-    sentry_options_add_attachment(options, "log", logPath.c_str());
+    sentry_options_add_attachment(options, logPath.c_str());
 #endif
     
     sentry_init(options);