Skip to content

Commit 2917cf1

Browse files
committed
forgot branch
1 parent 9ed8e35 commit 2917cf1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xhttp/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ func addCert(log slog.Logger, pool *x509.CertPool, path string) error {
8282
if !pool.AppendCertsFromPEM(b) {
8383
log.Error(context.Background(), "failed to append cert",
8484
slog.F("filepath", path))
85+
} else {
86+
log.Debug(context.Background(), "added cert", slog.F("path", path))
8587
}
86-
log.Debug(context.Background(), "added cert", slog.F("path", path))
8788
return nil
8889
}

0 commit comments

Comments
 (0)