Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix indicatif prog bar #359

Merged
merged 8 commits into from
Mar 8, 2024
Merged

Conversation

tgauth
Copy link
Collaborator

@tgauth tgauth commented Mar 8, 2024

PR Summary

  • readdress Tracing and progress get interleaved #337
  • uses warn_span for progress bars since that is the default tracing level and can be turned off by specifying error trace level
  • no longer displays progress bars once progress is completed, so done messages are removed

PR Context

  • dsc resource list demo:
demo-list-2.mp4
  • dsc config get demo:
demo-get-2.mp4

@tgauth tgauth requested a review from SteveL-MSFT March 8, 2024 17:26
dsc_lib/src/configure/mod.rs Outdated Show resolved Hide resolved
@@ -246,7 +247,8 @@ impl Configurator {
result.results.push(resource_result);
}

pb.finish_with_message("Get configuration completed");
mem::drop(pb_span_enter);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this needed explicitly? I would expect both to be dropped when going out of scope

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's needed within the config functions but I removed it from resource list

dsc_lib/src/configure/mod.rs Show resolved Hide resolved
@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Mar 8, 2024
Merged via the queue into PowerShell:main with commit 655e2c4 Mar 8, 2024
4 checks passed
@tgauth tgauth deleted the fix-indicatif-prog-bar branch March 29, 2024 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants