diff --git a/api/docInitRunner/runner.go b/api/docInitRunner/runner.go index b723d0c8..767fbb23 100644 --- a/api/docInitRunner/runner.go +++ b/api/docInitRunner/runner.go @@ -37,7 +37,7 @@ type Body struct { func (s Runner) Process(ctx context.Context, body Body) bool { key, err := objectstore.ParseBucketKey(body.Key) if err != nil { - slog.Error("unable to parse key", "key", body.Key) + slog.Error("unable to parse key", "key", body.Key, "error", err) return false } diff --git a/internal/document/store/process.go b/internal/document/store/process.go index 1786820e..e28fbf4e 100644 --- a/internal/document/store/process.go +++ b/internal/document/store/process.go @@ -49,11 +49,11 @@ func (s *Service) Process(ctx context.Context, params Params) error { queueParams.QueueURL = s.cfg.GetDocInitURL() queueParams.Body = docinitrunner.Body{ Bucket: params.Bucket, - Key: params.Key, + Key: decodedKey, Hash: params.Hash, } default: - slog.Info("unsupported key", "key", params.Key) + slog.Info("unsupported key", "key", decodedKey) return nil }