소스 검색

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