Skip to content

Logging levels #4534

@vm-mscs-mmxxiv

Description

@vm-mscs-mmxxiv

Description

The --log-level=5 (the highest) lack on details. At the moment it is not clear which detectors were executed (I tried to figure what is tested and search for list of detectors). What they had found and why.

Preferred Solution

Since trace level suppose to be verbose add required information, section output by detector, automaton tools which may parse this output later should be considered. If this level is switched on something is not running as requested user needs to figure things out.

Additional Context

It is more documentation issue. This output:

info-0	trufflehog	finished scanning	{"chunks": 300, "bytes": 849430, "verified_secrets": 0, "unverified_secrets": 0, "scan_duration": "81.959022ms", "trufflehog_version": "3.88.29", "verification_caching": {"Hits":0,"Misses":4,"HitsWasted":0,"AttemptsSaved":0,"VerificationTimeSpentMS":29}}

After 'verification_caching' all is nor documented, neither clear to guess what are all of these?

When log-level=5 there is 'dataErrChan closed' is it significant, do I need to panic? Not clear.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions