@@ -37,6 +37,7 @@ use bytes::Bytes;
3737use chrono:: { DateTime , Local , NaiveTime , Utc } ;
3838use relative_path:: RelativePathBuf ;
3939use std:: io:: Error as IOError ;
40+ use tracing:: { error, info} ;
4041pub mod column;
4142pub mod manifest;
4243pub mod snapshot;
@@ -280,7 +281,7 @@ async fn create_manifest(
280281 } ;
281282 first_event_at = Some ( lower_bound. with_timezone ( & Local ) . to_rfc3339 ( ) ) ;
282283 if let Err ( err) = STREAM_INFO . set_first_event_at ( stream_name, first_event_at. clone ( ) ) {
283- log :: error!(
284+ error ! (
284285 "Failed to update first_event_at in streaminfo for stream {:?} {err:?}" ,
285286 stream_name
286287 ) ;
@@ -360,7 +361,7 @@ pub async fn get_first_event(
360361 let manifests = meta_clone. snapshot . manifest_list ;
361362 let time_partition = meta_clone. time_partition ;
362363 if manifests. is_empty ( ) {
363- log :: info!( "No manifest found for stream {stream_name}" ) ;
364+ info ! ( "No manifest found for stream {stream_name}" ) ;
364365 return Err ( ObjectStorageError :: Custom ( "No manifest found" . to_string ( ) ) ) ;
365366 }
366367 let manifest = & manifests[ 0 ] ;
@@ -400,7 +401,7 @@ pub async fn get_first_event(
400401 handlers:: http:: cluster:: get_ingestor_info ( )
401402 . await
402403 . map_err ( |err| {
403- log :: error!( "Fatal: failed to get ingestor info: {:?}" , err) ;
404+ error ! ( "Fatal: failed to get ingestor info: {:?}" , err) ;
404405 ObjectStorageError :: from ( err)
405406 } ) ?;
406407 let mut ingestors_first_event_at: Vec < String > = Vec :: new ( ) ;
0 commit comments