Module: AtlasEngine::AddressImporter::ImportLogHelper
Constant Summary
collapse
- TEST_TIMESTAMP =
"timestamp"
Instance Method Summary
collapse
Methods included from LogHelper
#log_error, #log_info, #log_warn
Instance Method Details
#import_log_error(country_import:, message:, additional_params: {}) ⇒ Object
34
35
36
37
38
|
# File 'app/helpers/atlas_engine/address_importer/import_log_helper.rb', line 34
def import_log_error(country_import:, message:, additional_params: {})
log_error(message, T.must(additional_params))
event = create_event(country_import, message, :error, additional_params)
send_notification(event) if event
end
|
#import_log_info(country_import:, message:, category: :progress, additional_params: {}, notify: false) ⇒ Object
21
22
23
24
25
|
# File 'app/helpers/atlas_engine/address_importer/import_log_helper.rb', line 21
def import_log_info(country_import:, message:, category: :progress, additional_params: {}, notify: false)
log_info(message, additional_params)
event = create_event(country_import, message, category, additional_params)
send_notification(event) if event && notify
end
|