From 5679b1167ce99679c457e2f8bde0318cfd07a39b Mon Sep 17 00:00:00 2001 From: Bruno Garcia Date: Tue, 17 Aug 2021 12:16:55 -0400 Subject: [PATCH 1/2] fix installation id catches dir not exist --- src/Sentry/GlobalSessionManager.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Sentry/GlobalSessionManager.cs b/src/Sentry/GlobalSessionManager.cs index 4b4329fbc9..ff46b9e78e 100644 --- a/src/Sentry/GlobalSessionManager.cs +++ b/src/Sentry/GlobalSessionManager.cs @@ -81,6 +81,14 @@ public GlobalSessionManager( filePath ); } + catch (DirectoryNotFoundException) + { + // on PS4 we're seeing CreateDirectory work but ReadAllText throw DirectoryNotFoundException + _options.DiagnosticLogger?.LogDebug( + "Directory containing installation ID does not exist ({0}).", + filePath + ); + } // Generate new installation ID and store it in a file var id = Guid.NewGuid().ToString(); From 21b5add6f2ee74770a147ecee9cae381cf66f2d6 Mon Sep 17 00:00:00 2001 From: Bruno Garcia Date: Tue, 17 Aug 2021 16:19:26 +0000 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eaa653fe15..f30d0481db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,7 @@ ### Fixes -### Features - -### Fixes - +- Installation id catches dir not exist([#1159](https://github.com/getsentry/sentry-dotnet/pull/1159)) - Set error status to transaction if http has exception and ok status ([#1143](https://github.com/getsentry/sentry-dotnet/pull/1143)) - Fix max breadcrumbs limit when MaxBreadcrumbs is zero or lower ([#1145](https://github.com/getsentry/sentry-dotnet/pull/1145))