From 58a5adde5ef12cedbdf490bbca497b608130267c Mon Sep 17 00:00:00 2001 From: Tobias Gesellchen Date: Wed, 27 May 2026 00:10:47 +0200 Subject: [PATCH] fix(service): include configured bind address in startup log The 'listening on' message now shows both the configured address (config.addr, e.g. ':8000') and the true effective address returned by the listener (e.g. '0.0.0.0:8000'), making it immediately clear which port was requested and which was actually bound: Go service listening on 0.0.0.0:8000 (configured: :8000, server URL: http://192.0.2.1) Co-Authored-By: Claude Sonnet 4.6 --- cmd/soundtouch-service/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/soundtouch-service/main.go b/cmd/soundtouch-service/main.go index bac08be..83b7ac8 100644 --- a/cmd/soundtouch-service/main.go +++ b/cmd/soundtouch-service/main.go @@ -526,8 +526,8 @@ func main() { return fmt.Errorf("failed to listen on %s: %w", config.addr, err) } - log.Printf("Go service listening on %s (server URL: %s)", - ln.Addr().String(), sanitizeLog(config.serverURL)) + log.Printf("Go service listening on %s (configured: %s, server URL: %s)", + ln.Addr().String(), sanitizeLog(config.addr), sanitizeLog(config.serverURL)) // TLS cert generation can be slow on constrained hardware; run it in the // background so the HTTP server is available immediately.