Explorar o código

add all parameters except token to the log output

Moritz Stückler %!s(int64=7) %!d(string=hai) anos
pai
achega
673db8d0b3
Modificáronse 1 ficheiros con 1 adicións e 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