瀏覽代碼

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