remove slog completely

This commit is contained in:
Pavel 2024-01-19 13:20:16 +03:00
parent 194e9c40e9
commit 3afa198be2

View File

@ -5,7 +5,7 @@ import (
"crypto/tls" "crypto/tls"
"crypto/x509" "crypto/x509"
"fmt" "fmt"
"log/slog" "go.uber.org/zap"
"net" "net"
"net/http" "net/http"
"net/url" "net/url"
@ -230,7 +230,7 @@ func (b *HTTPClientBuilder) buildMocks() error {
} }
if b.mockHost != "" && b.mockPort != "" && len(b.mockedDomains) > 0 { if b.mockHost != "" && b.mockPort != "" && len(b.mockedDomains) > 0 {
b.log("Mock address has been set", slog.String("address", net.JoinHostPort(b.mockHost, b.mockPort))) b.log("Mock address has been set", zap.String("address", net.JoinHostPort(b.mockHost, b.mockPort)))
b.log("Mocked domains: ") b.log("Mocked domains: ")
for _, domain := range b.mockedDomains { for _, domain := range b.mockedDomains {