From c936c1c042fc82d04cd5a70819fc10ce5da1bc0a Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sun, 14 Apr 2024 17:03:32 +0300 Subject: fix(tvix/castore/blob/object_store): tweak log levels Don't log with info! here, bug debug!. Change-Id: I57bd5f2a45276090b893a4051fd175e3948ddfa4 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11438 Reviewed-by: Connor Brewster Tested-by: BuildkiteCI Autosubmit: flokli --- tvix/castore/src/blobservice/object_store.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tvix/castore/src/blobservice/object_store.rs b/tvix/castore/src/blobservice/object_store.rs index c2e54e15df..0a9bd85e98 100644 --- a/tvix/castore/src/blobservice/object_store.rs +++ b/tvix/castore/src/blobservice/object_store.rs @@ -14,7 +14,7 @@ use prost::Message; use tokio::io::{AsyncRead, AsyncWrite, AsyncWriteExt}; use tokio_stream::StreamExt; use tonic::async_trait; -use tracing::{debug, info, instrument, trace, Level}; +use tracing::{debug, instrument, trace, Level}; use url::Url; use crate::{ @@ -325,7 +325,7 @@ async fn upload_chunk( match object_store.head(&chunk_path).await { // chunk already exists, nothing to do Ok(_) => { - info!("chunk already exists"); + debug!("chunk already exists"); } // chunk does not yet exist, compress and upload. @@ -333,7 +333,7 @@ async fn upload_chunk( let chunk_data_compressed = zstd::encode_all(Cursor::new(chunk_data), zstd::DEFAULT_COMPRESSION_LEVEL)?; - info!(chunk.compressed_size=%chunk_data_compressed.len(), "uploading chunk"); + debug!(chunk.compressed_size=%chunk_data_compressed.len(), "uploading chunk"); object_store .as_ref() -- cgit 1.4.1