Add upload ID logging and improve multipart upload visibility

 ENHANCED MULTIPART UPLOAD LOGGING:

� UPLOAD ID VISIBILITY:
  • Added 'Beginning multipart upload - Upload ID: [id]' before upload starts
  • Shows upload ID immediately after initiation for tracking
  • Includes resume upload ID logging for resumed operations
  • Upload configuration details logged before processing begins

� DETAILED CONFIGURATION LOGGING:
  • Logs effective chunk size used (not just parameter value)
  • Shows total parts calculated from file size and chunk size
  • Displays max parallel uploads setting
  • Provides complete upload configuration overview

� IMPROVED VERBOSE OUTPUT:
  • Upload ID visible before any chunks are processed
  • Clear distinction between initiation and resumption
  • Configuration summary for troubleshooting
  • Better visibility into multipart upload parameters

� BENEFITS:
  • Easy tracking of upload operations by ID
  • Better debugging of multipart upload issues
  • Clear visibility into upload configuration
  • Improved monitoring of long-running operations

Now multipart uploads show upload ID and configuration details upfront!
This commit is contained in:
PSMinIO Developer
2025-07-14 21:33:31 -04:00
parent 27c2aca2a9
commit 5c94ae832d
2 changed files with 9 additions and 0 deletions
Binary file not shown.
+9
View File
@@ -84,6 +84,15 @@ namespace PSMinIO.Core.S3
uploadId = InitiateMultipartUpload(bucketName, objectName, metadata);
_progressCollector.QueueVerboseMessage("Initiated multipart upload with ID: {0}", uploadId);
}
else
{
_progressCollector.QueueVerboseMessage("Resuming multipart upload with ID: {0}", uploadId);
}
// Log upload details before starting
_progressCollector.QueueVerboseMessage("Beginning multipart upload - Upload ID: {0}", uploadId!);
_progressCollector.QueueVerboseMessage("Upload configuration - Chunk size: {0}, Total parts: {1}, Max parallel: {2}",
SizeFormatter.FormatBytes(effectiveChunkSize), totalParts, _maxParallelUploads);
// Upload parts in parallel
var uploadTasks = new List<Task>();