Skip to content

Commit

Permalink
chore: name passed to ErrorBlobWithNameExists method
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaVetnic committed Oct 19, 2023
1 parent 87ed6d3 commit b05ff2d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ private async Task EnsureKeyDoesNotExist(string folder, string key)
await _logger.TraceTime(async () =>
await _storageClient.GetObjectAsync(folder, key), nameof(_storageClient.GetObjectAsync));

_logger.ErrorBlobWithNameExists();
_logger.ErrorBlobWithNameExists(key);
throw new BlobAlreadyExistsException(key);
}
catch (GoogleApiException ex)
Expand Down Expand Up @@ -199,8 +199,8 @@ internal static partial class GoogleCloudStorageLogs
EventId = 358892,
EventName = "GoogleCloudStorage.ErrorBlobWithNameExists",
Level = LogLevel.Error,
Message = "The blob with the given name already exists.")]
public static partial void ErrorBlobWithNameExists(this ILogger logger);
Message = "The blob with the name {blobName} already exists.")]
public static partial void ErrorBlobWithNameExists(this ILogger logger, string blobName);

[LoggerMessage(
EventId = 304533,
Expand Down

0 comments on commit b05ff2d

Please sign in to comment.