Skip to content

Commit

Permalink
Merge pull request #84 from true-runes/development
Browse files Browse the repository at this point in the history
v1.5.1
  • Loading branch information
nikukyugamer committed Jun 6, 2021
2 parents ce0898a + d55a833 commit f348012
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,15 @@ def initialize(spreadsheet_id: nil, sheet_name: nil)
set_basic_valiables
end

def execute(hashtag, options={})
def execute(hashtag, options={}, logger_options={})
update_target_tweets = target_tweets(hashtag, options)

Rails.logger.info(
LoggerMethods.convert_hash_to_json(
hashtag: hashtag,
message: 'update_target_tweets',
tweets: LoggerMethods.convert_tweet_objects_to_array(update_target_tweets)
)
)
merged_logger_options = {
hashtag: hashtag,
message: 'update_target_tweets',
tweets: LoggerMethods.convert_tweet_objects_to_array(update_target_tweets)
}.merge(logger_options)
Rails.logger.info(LoggerMethods.convert_hash_to_json(merged_logger_options))

update_data(update_target_tweets)
rescue StandardError => e
Expand Down

0 comments on commit f348012

Please sign in to comment.