Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Commit

Permalink
Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
zhulik committed Feb 9, 2023
1 parent 7bec632 commit f3af786
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion notifier/function/lib/function/handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class Function::Handler
def initialize(env, body:)
@env = env
@body = body
Console.logger.info(self) { "env=#{env}, body=#{body}" }
end

def call
Expand Down
1 change: 1 addition & 0 deletions notifier/function/lib/function/telegram.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def notify(text)
end

def send_notification(chat_id:, text:)
Console.logger.info(self) { "chat_id=#{chat_id}, text=#{text}, token=#{@token[0..2]}" }
connection.post("/bot#{@token}/sendMessage", chat_id:, text:, parse_mode: "Markdown")
end
end

0 comments on commit f3af786

Please sign in to comment.