Matched-message output now routes through slog: level gating and JSON-handler noise #28
Labels
No labels
dep-scan
dep-scan
dep-scan
dep-scan
dep-scan
dep-scan
dep-scan
dep-scan
dep-scan
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
finding
mod-nag
mod-nag
mod-nag
mod-nag
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
bug
doc
duplicate
enhancement
help wanted
invalid
question
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
IUS/xr-invoiced#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found during review of #24.
In
internal/scanner/scanner.gothe matched-but-not-verbose-not-ReportProcessed branch changed from:to:
Two side effects worth deciding deliberately:
fmt.Println. They now go through slog and are suppressed if the configured level is above Info (e.g. a future--quietflag). If matched messages are "primary output" they should not be level-gated.logArgsaddstagged,scan, and (whens.terminal)bold/dimto the record. The text handler filtersbold/dim; the JSON handler and journal handler don't filtertagged/scan. For--log-format=jsondeployments, matched messages now appear as JSON with these fields rather than as a single bold human line. Probably intended, but should be acknowledged.Suggested actions:
bold/dimout oflogArgsentirely when!s.terminalso non-text handlers don't carry them.Refs: PR #24
Fixed in
8a33337. Matched-message output now goes through slog instead of writing directly to stdout, so this finding is resolved.