feat(logging): enhance logging in GarageAdminService with detailed request information

Signed-off-by: Noooste <83548733+Noooste@users.noreply.github.com>
This commit is contained in:
Noooste
2026-04-19 13:59:27 +02:00
parent afc4da7491
commit 68be5ea2be
3 changed files with 167 additions and 27 deletions
+10
View File
@@ -5,6 +5,7 @@ import (
"errors"
"fmt"
"net"
"strings"
"syscall"
"time"
)
@@ -50,6 +51,15 @@ func IsConnectionRefused(err error) bool {
return true
}
// Some HTTP clients (e.g. azuretls) collapse the syscall error into a
// plain string before returning. Fall back to substring matching so the
// retry path still triggers for those wrappers. "connectex" is the
// Windows variant emitted by the Go runtime.
msg := err.Error()
if strings.Contains(msg, "connection refused") || strings.Contains(msg, "actively refused") {
return true
}
return false
}