Skip to content

Commit

Permalink
add logger
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-exz committed Dec 24, 2024
1 parent 66dfa71 commit f702951
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bot/commands/other.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module WhoIsOnDutyTodaySlackBotModule
module Commands
class Other
def self.call(client:, data:, match:)
log_event("Incoming data: #{data}")
message_processor = MessageProcessor.new
time = DateTime.strptime(data.ts, '%s')

Expand Down Expand Up @@ -151,6 +152,10 @@ def self.auto_answer_at_working_time(client, channel, data)
end
end
end
def self.log_event(message)
logger = Logger.new(STDOUT)
logger.info(message)
end
end
end
end

0 comments on commit f702951

Please sign in to comment.