소스 검색

add logging output for pushover agent

for debugging purposes there should be a logging output. however the pushover does not have a log output. i added a simple logging output.
Moritz Stückler 7 년 전
부모
커밋
309ae9cc1c
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app/models/agents/pushover_agent.rb

+ 1 - 0
app/models/agents/pushover_agent.rb

@@ -108,6 +108,7 @@ module Agents
     def send_notification(post_params)
       response = HTTParty.post(API_URL, query: post_params)
       puts response
+      log "Sent notification with message \"#{post_params['message']}\" to \"#{post_params['user']}\""
     end
   end
 end