@@ -458,7 +458,9 @@ func buildKibanaClient(cfg config.Client) (*kibana.Client, error) {
458
458
}
459
459
460
460
if logging .IsDebugOrHigher () {
461
- // Don't use kib.Client.SetDebug() here as we re-use the http client within the OpenAPI generated clients
461
+ // It is required to set debug mode even if we re-use the http client within the OpenAPI generated clients
462
+ // some of the clients are not relying on the OpenAPI generated clients and are using the http client directly
463
+ kib .Client .SetDebug (true )
462
464
transport , err := kib .Client .Transport ()
463
465
if err != nil {
464
466
return nil , err
@@ -481,6 +483,7 @@ func buildKibanaOapiClient(cfg config.Client) (*kibana_oapi.Client, error) {
481
483
482
484
func buildAlertingClient (cfg config.Client , httpClient * http.Client ) * alerting.APIClient {
483
485
alertingConfig := alerting.Configuration {
486
+ Debug : logging .IsDebugOrHigher (),
484
487
UserAgent : cfg .UserAgent ,
485
488
Servers : alerting.ServerConfigurations {
486
489
{
@@ -521,6 +524,7 @@ func buildConnectorsClient(cfg config.Client, httpClient *http.Client) (*connect
521
524
522
525
func buildSloClient (cfg config.Client , httpClient * http.Client ) * slo.APIClient {
523
526
sloConfig := slo.Configuration {
527
+ Debug : logging .IsDebugOrHigher (),
524
528
UserAgent : cfg .UserAgent ,
525
529
Servers : slo.ServerConfigurations {
526
530
{
0 commit comments