From 2917cf1e542d2d15ba7a46940b1aa504dcc21c42 Mon Sep 17 00:00:00 2001 From: Jon Ayers Date: Wed, 4 Sep 2024 17:01:31 +0000 Subject: [PATCH] forgot branch --- xhttp/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xhttp/client.go b/xhttp/client.go index 828adb9..e3e34ac 100644 --- a/xhttp/client.go +++ b/xhttp/client.go @@ -82,7 +82,8 @@ func addCert(log slog.Logger, pool *x509.CertPool, path string) error { if !pool.AppendCertsFromPEM(b) { log.Error(context.Background(), "failed to append cert", slog.F("filepath", path)) + } else { + log.Debug(context.Background(), "added cert", slog.F("path", path)) } - log.Debug(context.Background(), "added cert", slog.F("path", path)) return nil }