Skip to content

Commit

Permalink
Merge pull request #2310 from cloudnativedaysjp/chore/add-debug-log
Browse files Browse the repository at this point in the history
add debug log
  • Loading branch information
takaishi authored May 13, 2024
2 parents 9b47032 + a86a827 commit 1b79b13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/tasks/post_number_of_registrants_to_slack.rake
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ namespace :util do
conferences = Conference.unarchived

conferences.each do |conference|
puts "conference: #{conference.abbr}"
body = ''

ActiveRecord::Base.transaction do
Expand Down Expand Up @@ -45,7 +46,9 @@ namespace :util do
end

if channels.any? { |c| c.name == conference.abbr }
client.chat_postMessage(channel: "##{conference.abbr}", text: body.join("\n"), username: "#{conference.abbr.upcase} 参加者速報")
puts "channel: #{conference.abbr} username: #{conference.abbr.upcase} 参加者速報 text: #{body.join("\n")}"
resp = client.chat_postMessage(channel: "##{conference.abbr}", text: body.join("\n"), username: "#{conference.abbr.upcase} 参加者速報")
p resp
end

if conference.abbr == 'cndt2023'
Expand Down

0 comments on commit 1b79b13

Please sign in to comment.