Skip to content

Commit

Permalink
Info when OXIDICOM_DEV_SLEEP is set
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Sep 25, 2024
1 parent 7f49a53 commit b87705d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/notifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ pub async fn cube_pacsfile_notifier(
if let Some(task) = task {
tx.send(task).unwrap();
if let Some(sleep_duration) = sleep {
tracing::info!("OXIDICOM_DEV_SLEEP is set, sleeping for {:?}. Please unset this option in production!", sleep_duration);
tokio::time::sleep(sleep_duration).await;
}
}
Expand Down

0 comments on commit b87705d

Please sign in to comment.