Commit bbe60158 by Ivan Lan

fix: remove logger

parent d7bc990c
......@@ -50,7 +50,7 @@ module TalltyImportExport
def export_workbook(workbook, **options)
export_instance = TalltyImportExport::Export.new(@klass)
opts = options.symbolize_keys.merge({ headers: @headers })
Rails.logger.info opts
# Rails.logger.info opts
export_instance.process_options(opts)
export_instance.export_workbook(workbook, [], **opts)
end
......@@ -106,7 +106,7 @@ module TalltyImportExport
def process_options(options)
options = import_options.merge(options).with_indifferent_access
Rails.logger.info options
# Rails.logger.info options
@headers = options.delete(:headers) || import_headers(**options.symbolize_keys)
@primary_keys = options.delete(:primary_keys) || @headers.map { |header| header[:primary_key] ? header[:key].to_sym : nil }.compact
@skip_keys = options.delete(:skip_keys) || @headers.map { |header| header[:skip] ? header[:key].to_sym : nil }.compact
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment