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)) 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();