Преглед изворни кода

add all parameters except token to the log output

Moritz Stückler пре 7 година
родитељ
комит
673db8d0b3
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/models/agents/pushover_agent.rb

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

@@ -108,7 +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']}\""
+      log "Sent the following notification: \"#{post_params.except('token').inspect}\""
     end
   end
 end