diff --git a/lib/mana/capistrano.rb b/lib/mana/capistrano.rb index 8732844..8a2a892 100644 --- a/lib/mana/capistrano.rb +++ b/lib/mana/capistrano.rb @@ -159,7 +159,7 @@ def sudo_runner desc "Watch Rails log" task :watchlog do begin - run "tail -n 100 -f #{fetch(:shared_path)}/log/#{rails_env}.log", pty: true do |_, stream, data| + run "tail -n 100 -f #{fetch(:shared_path)}/log/#{rails_env}.log", pty: true do |channel, stream, data| puts "[#{channel[:host]}][#{Time.now.strftime('%Y-%m-%d %H:%M:%S')}] #{data}" break if stream == :err end