Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
review
  • Loading branch information
bitsandfoxes committed Oct 1, 2024
commit a8c774d9cbb3c2c19b02ac42ccf4d8b592d03c70
2 changes: 1 addition & 1 deletion src/Sentry/GlobalSessionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private void DeletePersistedSession()

if (_options.DisableFileWrite)
{
_options.LogInfo("File write has been disabled via the options. Skipping deleting persisted session.");
_options.LogInfo("File write has been disabled via the options. Skipping deletion of persisted session files.");
return;
}

Expand Down
5 changes: 1 addition & 4 deletions src/Sentry/Internal/Http/CachingTransport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@ private CachingTransport(ITransport innerTransport, SentryOptions options, bool

// Sanity check: This should never happen in the first place.
// We check for `DisableFileWrite` before creating the CachingTransport.
if (_options.DisableFileWrite)
{
throw new InvalidOperationException("File write has been disabled via the options. Cannot create a Caching Transport.");
}
Debug.Assert(!_options.DisableFileWrite);

_processingDirectoryPath = Path.Combine(_isolatedCacheDirectoryPath, ProcessingFolder);
}
Expand Down