Skip to content

fix: an unparsable WEBHOOK_LOG_LEVEL prints its error before the exit; comment budget - #25

Merged
CMGS merged 2 commits into
mainfrom
review/round-2026-09-25
Sep 26, 2026
Merged

CMGS merged 2 commits into
mainfrom
review/round-2026-09-25

Conversation

@CMGS

@CMGS CMGS commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • fix: an unparsable WEBHOOK_LOG_LEVEL now prints its error before exiting. SetupLog fails before the global logger exists, so Fatalf went through a disabled logger and the pod crash-looped with empty logs. The error now goes to stderr, as in the operator and vk-cocoon.
  • review: four comments cut to the one-line budget.

Evidence

Linux container, WEBHOOK_LOG_LEVEL=verbose:

  • main: rc=1, no output.
  • this branch: rc=1, setup log: Unknown Level String: 'verbose', defaulting to NoLevel.

Gates:

  • make fmt-check and make lint: 0 issues.
  • go test -race ./...: pass.
  • asl on darwin and linux: clean.

Size: prod +9/-10.

SetupLog fails before the global logger exists, so Fatalf went through a disabled logger and the pod crash-looped with empty logs. The error now goes to stderr, as in the operator and vk-cocoon.
@CMGS
CMGS merged commit 4f4bd07 into main Sep 26, 2026
2 checks passed
@CMGS
CMGS deleted the review/round-2026-09-25 branch September 26, 2026 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant