diff --git a/VERSION b/VERSION index 5b530cbca..2b2b9f385 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.7.87 +3.7.88 diff --git a/lib/gooddata/lcm/actions/import_object_collections.rb b/lib/gooddata/lcm/actions/import_object_collections.rb index f0806e63b..8fa9efd9a 100644 --- a/lib/gooddata/lcm/actions/import_object_collections.rb +++ b/lib/gooddata/lcm/actions/import_object_collections.rb @@ -29,6 +29,7 @@ class << self def call(params) results = [] + GoodData.logger.info 'Starting ImportObjectCollections action' client = params.gdc_gd_client development_client = params.development_client number_of_threads = Integer(params.number_of_threads || '8') @@ -45,7 +46,9 @@ def call(params) to_project = client.projects(pid) || fail("Invalid 'to' project specified - '#{pid}'") if transfer_uris.any? + logging_data(from, pid, transfer_uris, true) from_project.partial_md_export(transfer_uris, project: to_project) + logging_data(from, pid, transfer_uris, false) end results << { @@ -58,6 +61,20 @@ def call(params) results end + + private + + def logging_data(from_project, to_project, transfer_uris, start_action) + if start_action + # Logging to execution log + GoodData.logger.info "Starting import objects, from_project: #{from_project}, to_project: #{to_project}" + # Logging to Splunk log + GoodData.gd_logger.info "Starting import objects, action=objects_import, from_project=#{from_project}, to_project=#{to_project}, transfer_uris=#{transfer_uris}" + else + GoodData.logger.info "Success import objects, from_project: #{from_project}, to_project: #{to_project}" + GoodData.gd_logger.info "Success import objects, action=objects_import, from_project=#{from_project}, to_project=#{to_project}" + end + end end end end