From cd9d835f6de5492fe14333b40d90e0e9b9d02548 Mon Sep 17 00:00:00 2001 From: Lol3rrr Date: Mon, 30 Oct 2023 23:24:12 +0100 Subject: [PATCH] Added some extra logs --- src/storage/s3.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/storage/s3.rs b/src/storage/s3.rs index 02bffc9..dd732c5 100644 --- a/src/storage/s3.rs +++ b/src/storage/s3.rs @@ -15,6 +15,7 @@ impl S3Storage { } impl StorageBackend for S3Storage { + #[tracing::instrument(skip(self, content))] fn write( &mut self, content: Vec, @@ -26,11 +27,17 @@ impl StorageBackend for S3Storage { let filename = filename; let content = content; + tracing::trace!("Storing to S3 Bucket"); + let res = bucket.put_object(&filename, &content); match res.await { Ok(_) => Ok(()), - Err(e) => Err(()), + Err(e) => { + tracing::error!("{:?}", e); + + Err(()) + } } }) }