Update logging and cache packaces.

This commit is contained in:
2024-05-14 09:34:59 +01:00
parent 9a58df7a54
commit 569867d04b
10 changed files with 170 additions and 506 deletions
+3 -3
View File
@@ -28,7 +28,7 @@ func (b *BaseClient) createHttpClient() (http_client *http.Client) {
return http.ErrUseLastResponse
},
}
b.Logger.Debug("Using HTTP/1.1 over http")
b.Logger.Debug("Using HTTP/1.1 over http", nil)
} else if strings.HasPrefix(b.endpoint, "https://") {
tlsClientConfig := &tls.Config{}
if strings.HasPrefix(b.endpoint, "https://") {
@@ -46,9 +46,9 @@ func (b *BaseClient) createHttpClient() (http_client *http.Client) {
return http.ErrUseLastResponse
},
}
b.Logger.Debug("Using HTTP/2 over https")
b.Logger.Debug("Using HTTP/2 over https", nil)
} else {
b.Logger.Critical("Invalid endpoint - neither http or https")
b.Logger.Critical("Invalid endpoint - neither http or https", nil)
}
return http_client
}