feat: capitalize all log messages for better readability

Capitalize the first letter of all log messages throughout the codebase
to improve readability and consistency in logging output.

Key improvements:
- All log messages now start with capital letters
- Consistent formatting across all logging statements
- Improved readability for debugging and monitoring
- Enhanced user experience with better formatted messages

Files updated:
- CLI commands and service management
- Internal client information discovery
- Network operations and configuration
- DNS resolver and proxy operations
- Platform-specific implementations

This completes the final phase of the logging improvement project,
ensuring all log messages follow consistent capitalization standards
for better readability and professional appearance.
This commit is contained in:
Cuong Manh Le
2025-09-04 15:46:37 +07:00
committed by Cuong Manh Le
parent 166b7f38fc
commit d3b01dc7e8
45 changed files with 391 additions and 389 deletions
+4 -4
View File
@@ -20,7 +20,7 @@ var (
func HasIPv6(ctx context.Context) bool {
hasIPv6Once.Do(func() {
logger := LoggerFromCtx(ctx)
logger.Debug().Msg("checking for IPv6 availability once")
logger.Debug().Msg("Checking for ipv6 availability once")
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
defer cancel()
val := ctrldnet.IPv6Available(ctx)
@@ -28,7 +28,7 @@ func HasIPv6(ctx context.Context) bool {
logger.Debug().Msgf("ipv6 availability: %v", val)
mon, err := netmon.New(func(format string, args ...any) {})
if err != nil {
logger.Debug().Err(err).Msg("failed to monitor IPv6 state")
logger.Debug().Err(err).Msg("Failed to monitor ipv6 state")
return
}
mon.RegisterChangeCallback(func(delta *netmon.ChangeDelta) {
@@ -37,7 +37,7 @@ func HasIPv6(ctx context.Context) bool {
if old != cur {
logger.Warn().Msgf("ipv6 availability changed, old: %v, new: %v", old, cur)
} else {
logger.Debug().Msg("ipv6 availability does not changed")
logger.Debug().Msg("ipv6 availability does not Changed")
}
ipv6Available.Store(cur)
})
@@ -50,6 +50,6 @@ func HasIPv6(ctx context.Context) bool {
func DisableIPv6(ctx context.Context) {
if ipv6Available.CompareAndSwap(true, false) {
logger := LoggerFromCtx(ctx)
logger.Debug().Msg("turned off IPv6 availability")
logger.Debug().Msg("Turned off ipv6 availability")
}
}