Skip to content

Commit cbe0d9e

Browse files
committed
Cosmetic change of logger name for Podcast's task
1 parent afb64ca commit cbe0d9e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/tasks/podcasts.rake

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

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

0 commit comments

Comments
 (0)