Skip to content

Commit d6df75c

Browse files
committed
Fix errors in podcasts:upsert task #1686
1 parent fb33e92 commit d6df75c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/tasks/podcasts.rake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ require 'rss'
33
namespace :podcasts do
44
desc 'Anchor.fm から Podcast データ情報を取得して登録'
55
task upsert: :environment do
6-
user_id = '626746926'
7-
logger = ActiveSupport::Logger.new('log/podcasts.log')
8-
console = ActiveSupport::Logger.new(STDOUT)
9-
logger.extend ActiveSupport::Logger.broadcast(console)
6+
user_id = '626746926'
7+
logger = ActiveSupport::Logger.new('log/podcasts.log')
8+
console = ActiveSupport::Logger.new(STDOUT)
9+
logger = ActiveSupport::BroadcastLogger.new(logger, console)
1010

1111
logger.info('==== START podcasts:upsert ====')
1212

0 commit comments

Comments
 (0)