1
0
Эх сурвалжийг харах

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 жил өмнө
parent
commit
309ae9cc1c

+ 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