fix: Use verbosity level 3 for no_log#278
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideIncrease the verbosity threshold at which the Ansible Sequence diagram for package_facts logging with updated verbosity thresholdsequenceDiagram
actor Operator
participant AnsibleEngine
participant PackageFactsTask
participant Logger
Operator->>AnsibleEngine: run_playbook_with_verbosity_N
AnsibleEngine->>PackageFactsTask: execute_with_no_log_ansible_verbosity_lt_3
alt ansible_verbosity_lt_3
PackageFactsTask-->>Logger: suppress_package_facts_output
else ansible_verbosity_gte_3
PackageFactsTask-->>Logger: send_package_facts_output
end
Flow diagram for no_log behavior based on ansible_verbosityflowchart TD
Start[Run_ansible_playbook] --> SetVerbosity[Set_ansible_verbosity]
SetVerbosity --> CheckVerbosity{ansible_verbosity < 3}
CheckVerbosity -->|yes| NoLogTrue[Set_no_log_true_for_package_facts]
CheckVerbosity -->|no| NoLogFalse[Set_no_log_false_for_package_facts]
NoLogTrue --> OutputHidden[package_facts_output_hidden_in_logs]
NoLogFalse --> OutputVisible[package_facts_output_visible_in_logs]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use
ansible_verbosity < 3instead of< 2to show output with-vvvor higher.Summary by Sourcery
Enhancements: