mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-10-23 19:33:54 +00:00
syn2mas: log progress more often
This commit is contained in:
1 file changed
+3
-3
@@ -262,13 +262,13 @@ impl Options {
|
||||
}
|
||||
}
|
||||
|
||||
/// Logs progress every 30 seconds, as a lightweight alternative to a progress
|
||||
/// bar. For most deployments, the migration will not take 30 seconds so this
|
||||
/// Logs progress every 5 seconds, as a lightweight alternative to a progress
|
||||
/// bar. For most deployments, the migration will not take 5 seconds so this
|
||||
/// will not be relevant. In other cases, this will give the operator an idea of
|
||||
/// what's going on.
|
||||
async fn occasional_progress_logger(progress: Progress) {
|
||||
loop {
|
||||
tokio::time::sleep(Duration::from_secs(30)).await;
|
||||
tokio::time::sleep(Duration::from_secs(5)).await;
|
||||
match &**progress.get_current_stage() {
|
||||
ProgressStage::SettingUp => {
|
||||
info!(name: "progress", "still setting up");
|
||||
|
||||
Reference in new issue
Block a user