Browse Source

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 years ago
parent
commit
309ae9cc1c
1 changed files with 1 additions and 0 deletions
  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