Skip to content

Commit

Permalink
Set up development logger and debug in uni_updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreben committed Dec 14, 2016
1 parent b062467 commit 1095df4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/models/uni_updates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def self.filter_duplicates(item_ids)
duplicates << item_id
end
end
logger.info "UNIQUES:#{uniques}"
logger.info "DUPLICATES:#{duplicates}"
[uniques, duplicates]
end
end
4 changes: 4 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
# Raise an error on page load if there are pending migrations.
config.active_record.migration_error = false

# Set up a development logger
config.logger = Logger.new(STDOUT)
config.logger = Log4r::Logger.new("Application Log")
config.log_level = :info

# Raises error for missing translations
# config.action_view.raise_on_missing_translations = true
Expand Down
2 changes: 0 additions & 2 deletions spec/fixtures/files/test_file.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
123
456
789
011

0 comments on commit 1095df4

Please sign in to comment.