Skip to content

Commit

Permalink
Use logger instead of puts
Browse files Browse the repository at this point in the history
  • Loading branch information
rantan committed May 13, 2024
1 parent 077a066 commit 5ad8da4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tasks/glueby/block_syncer.rake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace :glueby do
namespace :block_syncer do
desc '[Deprecated use glueby:block_syncer:start instead] sync block into database'
task :start, [] => [:environment] do |_, _|
puts '[Deprecated] glueby:contract:block_syncer:start is deprecated. Use \'glueby:block_syncer:start\''
Rails.logger.info('[Deprecated] glueby:contract:block_syncer:start is deprecated. Use \'glueby:block_syncer:start\'')
Rake::Task['glueby:block_syncer:start'].execute
end
end
Expand All @@ -22,7 +22,7 @@ namespace :glueby do
Glueby::BlockSyncer.new(height).run
synced_block.update(info_value: height.to_s)
end
puts "success in synchronization (block height=#{height})"
Rails.logger.info("success in synchronization (block height=#{height})")
end
end

Expand Down

0 comments on commit 5ad8da4

Please sign in to comment.