all: use lowercase log messages

Go style recommends that log messages and error strings should not be
capitalized (unless beginning with proper nouns or acronyms) and should
not end with punctuation.

This change normalizes all zerolog .Msg() and .Msgf() calls to start
with lowercase letters, following Go conventions and making logs more
consistent across the codebase.
This commit is contained in:
Kristoffer Dalby 2026-02-05 13:59:26 +00:00
parent dd16567c52
commit 4a9a329339
22 changed files with 90 additions and 85 deletions

View file

@ -236,7 +236,7 @@ func (api headscaleV1APIServer) RegisterNode(
// Generate ephemeral registration key for tracking this registration flow in logs
registrationKey, err := util.GenerateRegistrationKey()
if err != nil {
log.Warn().Err(err).Msg("Failed to generate registration key")
log.Warn().Err(err).Msg("failed to generate registration key")
registrationKey = "" // Continue without key if generation fails
}
@ -546,7 +546,7 @@ func (api headscaleV1APIServer) BackfillNodeIPs(
ctx context.Context,
request *v1.BackfillNodeIPsRequest,
) (*v1.BackfillNodeIPsResponse, error) {
log.Trace().Caller().Msg("Backfill called")
log.Trace().Caller().Msg("backfill called")
if !request.Confirmed {
return nil, errors.New("not confirmed, aborting")
@ -823,7 +823,7 @@ func (api headscaleV1APIServer) Health(
}
if healthErr != nil {
log.Error().Err(healthErr).Msg("Health check failed")
log.Error().Err(healthErr).Msg("health check failed")
}
return response, healthErr