Skip to content
This repository was archived by the owner on Mar 29, 2022. It is now read-only.

Commit 0a34c02

Browse files
committed
Remove debug logger level in prod
1 parent a4a4740 commit 0a34c02

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

config/environments/production.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
logger = ActiveSupport::Logger.new(STDOUT)
3434
logger.formatter = config.log_formatter
3535
config.logger = ActiveSupport::TaggedLogging.new(logger)
36-
config.log_level = :debug
3736
end
3837

3938
config.active_record.dump_schema_after_migration = false

lib/tasks/gifts.rake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ namespace :gift do
1515
1616
Do you want to gift the remaining coupons to incompleted users? (y/n)"
1717

18-
Rails.logger.info message
18+
puts message
1919

2020
input = STDIN.gets.strip
2121

2222
if input == 'y'
23-
Rails.logger.info 'Gifting coupons...'
23+
puts 'Gifting coupons...'
2424
GiftService.call
2525
else
26-
Rails.logger.info 'Terminating.'
26+
puts 'Terminating.'
2727
end
2828
end
2929
end

0 commit comments

Comments
 (0)