feat: add --verbose flag and improve error messaging#35
Open
quanticsoul4772 wants to merge 1 commit intoSolDevelo:mainfrom
Open
feat: add --verbose flag and improve error messaging#35quanticsoul4772 wants to merge 1 commit intoSolDevelo:mainfrom
quanticsoul4772 wants to merge 1 commit intoSolDevelo:mainfrom
Conversation
Addresses SolDevelo#32 - InfraScan should be more verbose. Changes: - Add -v / --verbose CLI flag that sets logging to DEBUG level - Verbose mode prints framework, format, and module settings at startup - Verbose mode reports resource count and finding count after scan completes - Verbose mode shows full traceback on exception (previously required DEBUG log level to be set externally) - Regular error path now prints a hint to run with --verbose for more detail - Improve error message prefixes: [ERROR], [INFO], [*] for clarity Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Collaborator
|
This doesn't fully address the original issue. The main concern in #32 was improving visibility into what the scanners are actually doing, especially in cases where scans are skipped, partially executed, or fail silently. This PR mostly adjusts the global logging level, but it doesn’t significantly improve scanner-level observability. |
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.
Summary
Addresses #32 — InfraScan should be more verbose.
-v/--verboseflag — sets logging toDEBUGlevel and enables richer output--download-external-modulesstate before scanning[ERROR] Scan failed: <reason>+ a hint to rerun with--verbosefor the full traceback (previously required settingDEBUGexternally)[ERROR],[INFO],[*]prefixes make log lines easier to grep in CI outputExample output
Normal run:
Verbose run:
Error (normal):
Error (verbose):
🤖 Generated with Claude Code