Skip to content

Conversation

@justin-layerv
Copy link
Contributor

Summary

Standardize log message formatting in the server package as a representative sample of log formatting improvements.

Changes

  • Change auth error logging from log.Info to log.Warning (httpauth.go)
  • Remove trailing \n from log messages (logger handles newlines automatically)
  • Add colons before error values for consistency (e.g., error: %v instead of error %v)
  • Improve message clarity

Files Modified

  • endpoints/server/httpauth.go - Auth error log level
  • endpoints/server/httpserver.go - HTTP server error messages
  • endpoints/server/udpserver.go - UDP server error and debug messages

Future Work

Similar patterns exist in other packages (AC, Agent, DB) and can be addressed in follow-up PRs if desired.

Test Plan

  • Server package builds successfully

@justin-layerv justin-layerv self-assigned this Jan 4, 2026
@justin-layerv justin-layerv force-pushed the refactor/standardize-log-formatting branch from 3c50231 to 9d50fda Compare January 4, 2026 17:07
- Change auth error logging from Info to Warning level (httpauth.go)
- Remove trailing newlines from log messages (logger handles this)
- Add colons before error values for consistency
- Improve message clarity (e.g., "discarding packet from" instead of
  "Discard new packet from addr")

This is a representative sample of log formatting fixes focused on the
server package. Similar patterns exist in other packages and can be
addressed in follow-up PRs.
@justin-layerv justin-layerv force-pushed the refactor/standardize-log-formatting branch from 9d50fda to 9f85282 Compare January 4, 2026 17:09
- Keep standardized log formatting from PR (log.Warning for auth errors)
- Remove trailing newlines from log messages
- Apply import grouping style from main
craftleon
craftleon previously approved these changes Jan 7, 2026
@craftleon craftleon merged commit 9ef6107 into main Jan 7, 2026
9 checks passed
@craftleon craftleon deleted the refactor/standardize-log-formatting branch January 7, 2026 08:22
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.

3 participants