Skip to content

Commit cdd863a

Browse files
committed
modified warn statement
1 parent e8af012 commit cdd863a

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

src/handlers/http/logstream.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ pub async fn list(req: HttpRequest) -> Result<impl Responder, StreamError> {
102102
.unwrap()
103103
.into_iter()
104104
.filter(|logstream| {
105-
warn!("logstream-\n{logstream:?}");
106-
107105
Users.authorize(key.clone(), Action::ListStream, Some(logstream), None)
108106
== crate::rbac::Response::Authorized
109107
})

src/storage/object_storage.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -680,10 +680,8 @@ pub trait ObjectStorage: Debug + Send + Sync + 'static {
680680
}
681681

682682
// get all streams
683-
let streams = STREAM_INFO.list_streams();
684-
685-
for stream in streams {
686-
info!("Starting upload job for stream- {stream}");
683+
for stream in STREAM_INFO.list_streams() {
684+
info!("Starting object_store_sync for stream- {stream}");
687685

688686
let custom_partition = STREAM_INFO
689687
.get_custom_partition(&stream)
@@ -774,7 +772,7 @@ async fn conversion_for_stream(
774772
stream: String,
775773
shutdown_signal: bool,
776774
) -> Result<(), ObjectStorageError> {
777-
info!("Starting conversion job for stream- {stream}");
775+
info!("Starting arrow_conversion job for stream- {stream}");
778776

779777
let time_partition = STREAM_INFO
780778
.get_time_partition(&stream)

src/sync.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ where
5454
&& !warning_issued_clone.load(std::sync::atomic::Ordering::Relaxed)
5555
{
5656
warn!(
57-
"Task '{}' is taking longer than expected: (threshold: {:?})",
57+
"Task '{}' started at: {start_time:?} is taking longer than expected: (threshold: {:?})",
5858
task_name, threshold
5959
);
6060
warning_issued_clone.store(true, std::sync::atomic::Ordering::Relaxed);
@@ -68,7 +68,7 @@ where
6868
if warning_issued_clone_select.load(std::sync::atomic::Ordering::Relaxed) {
6969
let elapsed = start_time.elapsed();
7070
warn!(
71-
"Task '{}' took longer than expected: {:?} (threshold: {:?})",
71+
"Task '{}' started at: {start_time:?} took longer than expected: {:?} (threshold: {:?})",
7272
task_name, elapsed, threshold
7373
);
7474
}

0 commit comments

Comments
 (0)