Double mailbox in warn/error log output ([INBOX] ... mailbox=INBOX) #25
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#25
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
cmd/xr-invoiced/handler.gothe text and journal handlers prefix warn/error messages with[mailbox], then the unconditional attr-append loop also writesmailbox=<name>fromh.attrs. Resulting line:Tests assert the prefix is present but don't notice the redundant trailing attr.
Options:
mailboxout of the attr-append loop in bothtextHandlerandjournalHandler(it's already rendered as the prefix).Pick one and update the tests to assert the chosen form.
Refs: PR #24
Related commit:
3769de0. This issue is already closed in the tracker.