Skip to content

Commit

Permalink
Use Rails logger for cron job
Browse files Browse the repository at this point in the history
  • Loading branch information
vladyio committed Jul 6, 2024
1 parent d66e5bf commit ffaab7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dl_cleanup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ def self.call
dl_dir = Rails.root.join('public', 'dl')
FileUtils.rm_rf(dl_dir)

puts "Removed all files from #{dl_dir}"
Rails.logger.info "[#{__FILE__}] Removed all files from #{dl_dir}"
end
end

0 comments on commit ffaab7d

Please sign in to comment.