Skip to content

fix: replace panic with log.Fatalf and log WriteMsg errors#5

Open
victalejo wants to merge 1 commit into
swiftwave-org:mainfrom
victalejo:main
Open

fix: replace panic with log.Fatalf and log WriteMsg errors#5
victalejo wants to merge 1 commit into
swiftwave-org:mainfrom
victalejo:main

Conversation

@victalejo

Copy link
Copy Markdown

Summary

  • Replace panic(err) in main() with log.Fatalf for consistent, clean exit on resolver init failure.
  • Stop silently ignoring w.WriteMsg(m) errors in the DNS request handler; log them with log.Printf so failures are visible without taking the server down.

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