Skip to content
Merged
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
Next Next commit
debug instead of warning
  • Loading branch information
bitsandfoxes committed Sep 20, 2024
commit ba1df680923a4372c1782c6ee0afab09de198c31
12 changes: 6 additions & 6 deletions src/Sentry/Internal/FileSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public bool CreateDirectory(string path)
{
if (_options?.DisableFileWrite is false)
{
_options?.LogWarning("Skipping creating directory. Writing to file system has been explicitly disabled.");
_options?.LogDebug("Skipping creating directory. Writing to file system has been explicitly disabled.");
return false;
}

Expand All @@ -37,7 +37,7 @@ public bool DeleteDirectory(string path, bool recursive = false)
{
if (_options?.DisableFileWrite is false)
{
_options?.LogWarning("Skipping deleting directory. Writing to file system has been explicitly disabled.");
_options?.LogDebug("Skipping deleting directory. Writing to file system has been explicitly disabled.");
return false;
}

Expand All @@ -53,7 +53,7 @@ public bool MoveFile(string sourceFileName, string destFileName, bool overwrite
{
if (_options?.DisableFileWrite is false)
{
_options?.LogWarning("Skipping moving file. Writing to file system has been explicitly disabled.");
_options?.LogDebug("Skipping moving file. Writing to file system has been explicitly disabled.");
return false;
}

Expand All @@ -77,7 +77,7 @@ public bool DeleteFile(string path)
{
if (_options?.DisableFileWrite is false)
{
_options?.LogWarning("Skipping deleting file. Writing to file system has been explicitly disabled.");
_options?.LogDebug("Skipping deleting file. Writing to file system has been explicitly disabled.");
return false;
}

Expand All @@ -95,7 +95,7 @@ public Stream CreateFileForWriting(string path)
{
if (_options?.DisableFileWrite is false)
{
_options?.LogWarning("Skipping file for writing. Writing to file system has been explicitly disabled.");
_options?.LogDebug("Skipping file for writing. Writing to file system has been explicitly disabled.");
return Stream.Null;
}

Expand All @@ -106,7 +106,7 @@ public bool WriteAllTextToFile(string path, string contents)
{
if (_options?.DisableFileWrite is false)
{
_options?.LogWarning("Skipping writing all text to file. Writing to file system has been explicitly disabled.");
_options?.LogDebug("Skipping writing all text to file. Writing to file system has been explicitly disabled.");
return false;
}

Expand Down