Skip to content

Commit

Permalink
Do not log user-controlled data (#1737)
Browse files Browse the repository at this point in the history
  • Loading branch information
danjov authored Dec 9, 2024
2 parents 7df6f2d + 751c82c commit 36c0c90
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/api/BoreholeFileCloudService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ internal async Task UploadObject(IFormFile file, string objectName)
}
catch (AmazonS3Exception ex)
{
logger.LogError(ex, $"Error uploading file <{file.FileName}> to cloud storage.");
logger.LogError(ex, "Error uploading file to cloud storage.");
throw;
}
}
Expand All @@ -121,7 +121,7 @@ public async Task<byte[]> GetObject(string objectName)
}
catch (AmazonS3Exception ex)
{
logger.LogError(ex, $"Error downloading file from cloud storage.");
logger.LogError(ex, "Error downloading file from cloud storage.");
throw;
}
}
Expand Down Expand Up @@ -156,7 +156,7 @@ public async Task<int> CountDataExtractionObjects(string objectName)
}
catch (AmazonS3Exception ex)
{
logger.LogError(ex, $"Error counting files in data extraction folder in cloud storage.");
logger.LogError(ex, "Error counting files in data extraction folder in cloud storage.");
throw;
}
}
Expand Down Expand Up @@ -209,7 +209,7 @@ public async Task<int> CountDataExtractionObjects(string objectName)
}
catch (AmazonS3Exception ex)
{
logger.LogError(ex, $"Error retrieving image information from data extraction folder in cloud storage.");
logger.LogError(ex, "Error retrieving image information from data extraction folder in cloud storage.");
throw;
}
}
Expand All @@ -227,7 +227,7 @@ public async Task DeleteObject(string objectName)
}
catch (AmazonS3Exception ex)
{
logger.LogError(ex, $"Error deleting file <{objectName}> from cloud storage.");
logger.LogError(ex, "Error deleting file from cloud storage.");
throw;
}
}
Expand Down

0 comments on commit 36c0c90

Please sign in to comment.