module TopologicalInventory::Providers::Common::LoggingFunctions
Public Instance Methods
availability_check(message, severity = :info)
click to toggle source
# File lib/topological_inventory/providers/common/logging.rb, line 25 def availability_check(message, severity = :info) send("#{severity}_ext", "Source#availability_check", message) end
collecting(status, source, entity_type, refresh_state_uuid, total_parts = nil)
click to toggle source
# File lib/topological_inventory/providers/common/logging.rb, line 7 def collecting(status, source, entity_type, refresh_state_uuid, total_parts = nil) msg = "[#{status.to_s.upcase}] Collecting #{entity_type}" msg += ", :total parts => #{total_parts}" if total_parts.present? msg += ", :source_uid => #{source}, :refresh_state_uuid => #{refresh_state_uuid}" info(msg) end
collecting_error(source, entity_type, refresh_state_uuid, exception)
click to toggle source
# File lib/topological_inventory/providers/common/logging.rb, line 14 def collecting_error(source, entity_type, refresh_state_uuid, exception) msg = "[ERROR] Collecting #{entity_type}, :source_uid => #{source}, :refresh_state_uuid => #{refresh_state_uuid}" msg += ":message => #{exception.message}\n#{exception.backtrace.join("\n")}" error(msg) end
sweeping(status, source, sweep_scope, refresh_state_uuid)
click to toggle source
# File lib/topological_inventory/providers/common/logging.rb, line 20 def sweeping(status, source, sweep_scope, refresh_state_uuid) msg = "[#{status.to_s.upcase}] Sweeping inactive records, :sweep_scope => #{sweep_scope}, :source_uid => #{source}, :refresh_state_uuid => #{refresh_state_uuid}" info(msg) end