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

Add logger level to prod environment #440

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/tasks/gifts.rake
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ namespace :gift do

Do you want to gift the remaining coupons to incompleted users? (y/n)"

Rails.logger.info message
puts message

input = STDIN.gets.strip

if input == 'y'
Rails.logger.info 'Gifting coupons...'
puts 'Gifting coupons...'
GiftService.call
else
Rails.logger.info 'Terminating.'
puts 'Terminating.'
end
end
end