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

Add flag to increase verbosity and flag to override unreachable state #86

Merged
merged 4 commits into from
May 14, 2024

Conversation

martialblog
Copy link
Collaborator

This PR adds the following features:

Add verbose flag and function that can be used to enhance output more precisely

Before we only had a boolean debug flag, good for debugging errors.
The verbose flag can be used more precisely (-v -vvv) to specify when
something should be printed. This is useful for adding more output whilst avoiding
full debug output that contains secrets.

Fixes #83

Add flag to override URL unreachable state

I refactored the Nagios helper a bit to integrate this functionality a bit simpler.
Before we had distinct methods on the helper that added warn,crit,unko message, now
there's a general method that takes an int as parameter.
This way we avoid if-else structures for the new functionality.

Fixes #82

Plus I refactored the main function to be a bit leaner and added tests for the TLS options

 - Also added tests for TLS options
 - I refactored the Nagios helper a bit to integrate this functionality a bit simpler.
   Before we had distinct methods on the helper that added warn,crit,unko message, now
   there's a general method that takes an int as parameter.
   This way we avoid if-else structures for the new functionality.
… precisely

 - Before we only had a boolean debug flag, good for debugging errors.
   The verbose flag can be used more precisely (`-v -vvv`) to specify when
   something should be printed. This is useful for adding more output whilst avoiding
   full debug output that contains secrets.
@martialblog
Copy link
Collaborator Author

Currently testing this and waiting for some third party feedback

@martialblog martialblog merged commit fa15775 into master May 14, 2024
6 checks passed
@martialblog martialblog deleted the feature/verbose-http branch May 14, 2024 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant