Root path for import log files added
This commit is contained in:
@@ -250,8 +250,8 @@ def do_import(validate_only)
|
|||||||
lookup = get_column_lookup
|
lookup = get_column_lookup
|
||||||
path = Rails.root.join(input_file)
|
path = Rails.root.join(input_file)
|
||||||
|
|
||||||
log_filename = "import.log"
|
log_filename = Rails.root.join("import.log")
|
||||||
log_filename = "import_validate.log" if validate_only
|
log_filename = Rails.root.join("import_validate.log")
|
||||||
|
|
||||||
logger = Logger.new(log_filename)
|
logger = Logger.new(log_filename)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user