Added logging

This commit is contained in:
2026-02-23 00:42:38 +01:00
parent c989037160
commit d7bdb3177b
7 changed files with 242 additions and 29 deletions

View File

@@ -9,6 +9,7 @@ import (
"fs/models"
"fs/storage"
"io"
"log/slog"
"strings"
"time"
)
@@ -45,7 +46,13 @@ func (s *ObjectService) PutObject(bucket, key, contentType string, input io.Read
Chunks: chunks,
CreatedAt: timestamp,
}
fmt.Println(manifest)
slog.Debug("object_written_manifest",
"bucket", manifest.Bucket,
"key", manifest.Key,
"size", manifest.Size,
"chunk_count", len(manifest.Chunks),
"etag", manifest.ETag,
)
if err = s.metadataHandler.PutManifest(manifest); err != nil {
return nil, err
}