diff --git a/app/models/manageiq/providers/vmware/infra_manager/inventory/collector.rb b/app/models/manageiq/providers/vmware/infra_manager/inventory/collector.rb index b9a5e54da..396e09cf6 100644 --- a/app/models/manageiq/providers/vmware/infra_manager/inventory/collector.rb +++ b/app/models/manageiq/providers/vmware/infra_manager/inventory/collector.rb @@ -160,6 +160,7 @@ def vim_connect :path => '/sdk', :port => port, :rev => '6.5', + :debug => Settings.ems.ems_vmware.debug_vim_requests } require 'rbvmomi' diff --git a/app/models/manageiq/providers/vmware/infra_manager/metrics_collector_worker/runner.rb b/app/models/manageiq/providers/vmware/infra_manager/metrics_collector_worker/runner.rb index a22d5e3eb..e722d7fe7 100644 --- a/app/models/manageiq/providers/vmware/infra_manager/metrics_collector_worker/runner.rb +++ b/app/models/manageiq/providers/vmware/infra_manager/metrics_collector_worker/runner.rb @@ -2,6 +2,7 @@ class ManageIQ::Providers::Vmware::InfraManager::MetricsCollectorWorker::Runner def do_before_work_loop require "VMwareWebService/MiqVim" MiqVim.cacheScope = :cache_scope_core + MiqVim.on_log_body { |body| $vim_log.debug(body) } if Settings.ems.ems_vmware.debug_vim_requests end def before_exit(_message, _exit_code) diff --git a/app/models/manageiq/providers/vmware/infra_manager/operations_worker/runner.rb b/app/models/manageiq/providers/vmware/infra_manager/operations_worker/runner.rb index 2b0f9378d..0f3e30a4d 100644 --- a/app/models/manageiq/providers/vmware/infra_manager/operations_worker/runner.rb +++ b/app/models/manageiq/providers/vmware/infra_manager/operations_worker/runner.rb @@ -6,6 +6,7 @@ def do_before_work_loop MiqVim.cacheScope = :cache_scope_core MiqVim.monitor_updates = true MiqVim.pre_load = true + MiqVim.on_log_body { |body| $vim_log.debug(body) } if Settings.ems.ems_vmware.debug_vim_requests # Prime the cache before starting the do_work loop ems.connect diff --git a/config/settings.yml b/config/settings.yml index 0f50e3b5e..10d0cf140 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -2,6 +2,7 @@ :ems: :ems_vmware: :blacklisted_event_names: [] + :debug_vim_requests: false :event_handling: :event_groups: :addition: