From 3afa198be231f6aaa79f32830c633047ed0a98a5 Mon Sep 17 00:00:00 2001 From: Neur0toxine Date: Fri, 19 Jan 2024 13:20:16 +0300 Subject: [PATCH] remove slog completely --- core/util/httputil/http_client_builder.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/util/httputil/http_client_builder.go b/core/util/httputil/http_client_builder.go index 3d8bf3a..a27dd1c 100644 --- a/core/util/httputil/http_client_builder.go +++ b/core/util/httputil/http_client_builder.go @@ -5,7 +5,7 @@ import ( "crypto/tls" "crypto/x509" "fmt" - "log/slog" + "go.uber.org/zap" "net" "net/http" "net/url" @@ -230,7 +230,7 @@ func (b *HTTPClientBuilder) buildMocks() error { } 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: ") for _, domain := range b.mockedDomains {