Explorar el Código

add all parameters except token to the log output

Moritz Stückler hace 7 años
padre
commit
673db8d0b3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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