Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Toby Lawrence <[email protected]>
  • Loading branch information
tobz committed Sep 24, 2021
1 parent 1bfd7d4 commit 55f8062
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/sinks/aws_s3/sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ impl RequestBuilder<(String, Vec<Event>)> for S3RequestOptions {
self.filename_append_uuid
.then(|| format!("{}-{}", formatted_ts, Uuid::new_v4().to_hyphenated()))
.unwrap_or_else(|| formatted_ts.to_string())
}
};

let extension = self
Expand All @@ -56,9 +55,10 @@ impl RequestBuilder<(String, Vec<Event>)> for S3RequestOptions {
.unwrap_or_else(|| self.compression.extension().into());
let key = format!("{}/{}.{}", key, filename, extension);

debug!(
trace!(
message = "Sending events.",
bytes = ?payload.len(),
events_len = ?batch_size,
bucket = ?self.bucket,
key = ?key
);
Expand Down
3 changes: 2 additions & 1 deletion src/sinks/datadog_archives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,10 @@ impl RequestBuilder<(String, Vec<Event>)> for DatadogS3RequestBuilder {
)
.replace("//", "/");

debug!(
trace!(
message = "Sending events.",
bytes = ?payload.len(),
events_len = ?batch_size,
bucket = ?self.bucket,
key = ?key
);
Expand Down

0 comments on commit 55f8062

Please sign in to comment.