Skip to content

Commit 37aa68d

Browse files
committed
modified warn statement
1 parent 2da6604 commit 37aa68d

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
@@ -103,8 +103,6 @@ pub async fn list(req: HttpRequest) -> Result<impl Responder, StreamError> {
103103
.unwrap()
104104
.into_iter()
105105
.filter(|logstream| {
106-
warn!("logstream-\n{logstream:?}");
107-
108106
Users.authorize(key.clone(), Action::ListStream, Some(&logstream.name), None)
109107
== crate::rbac::Response::Authorized
110108
})

src/storage/object_storage.rs

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

680680
// get all streams
681-
let streams = STREAM_INFO.list_streams();
682-
683-
for stream in streams {
684-
info!("Starting upload job for stream- {stream}");
681+
for stream in STREAM_INFO.list_streams() {
682+
info!("Starting object_store_sync for stream- {stream}");
685683

686684
let custom_partition = STREAM_INFO
687685
.get_custom_partition(&stream)
@@ -772,7 +770,7 @@ async fn conversion_for_stream(
772770
stream: String,
773771
shutdown_signal: bool,
774772
) -> Result<(), ObjectStorageError> {
775-
info!("Starting conversion job for stream- {stream}");
773+
info!("Starting arrow_conversion job for stream- {stream}");
776774

777775
let time_partition = STREAM_INFO
778776
.get_time_partition(&stream)

src/sync.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ where
5353
&& !warning_issued_clone.load(std::sync::atomic::Ordering::Relaxed)
5454
{
5555
warn!(
56-
"Task '{}' is taking longer than expected: (threshold: {:?})",
56+
"Task '{}' started at: {start_time:?} is taking longer than expected: (threshold: {:?})",
5757
task_name, threshold
5858
);
5959
warning_issued_clone.store(true, std::sync::atomic::Ordering::Relaxed);
@@ -67,7 +67,7 @@ where
6767
if warning_issued_clone_select.load(std::sync::atomic::Ordering::Relaxed) {
6868
let elapsed = start_time.elapsed();
6969
warn!(
70-
"Task '{}' took longer than expected: {:?} (threshold: {:?})",
70+
"Task '{}' started at: {start_time:?} took longer than expected: {:?} (threshold: {:?})",
7171
task_name, elapsed, threshold
7272
);
7373
}

0 commit comments

Comments
 (0)