From 5ad8da4acdccbdebd3007a75b09dfa28fef93e84 Mon Sep 17 00:00:00 2001 From: Kohei Taniguchi Date: Mon, 13 May 2024 17:12:09 +0900 Subject: [PATCH] Use logger instead of puts --- lib/tasks/glueby/block_syncer.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/glueby/block_syncer.rake b/lib/tasks/glueby/block_syncer.rake index 229d4a92..1eae951a 100644 --- a/lib/tasks/glueby/block_syncer.rake +++ b/lib/tasks/glueby/block_syncer.rake @@ -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 @@ -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