about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-20 03:12:23 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-20 03:12:23 +0200
commita66d34878c7353064e6d85f79485e5a52bb2d7c1 (patch)
tree5b8f13a656a83d457020e0fc5d795f22d2037961 /app/controllers
parent608a2bfffc9186e71d52e0916b54b0f513994db2 (diff)
Add more logging to PuSH callback
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/api/subscriptions_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/api/subscriptions_controller.rb b/app/controllers/api/subscriptions_controller.rb
index 04d99b828..68cdef8cc 100644
--- a/app/controllers/api/subscriptions_controller.rb
+++ b/app/controllers/api/subscriptions_controller.rb
@@ -4,6 +4,7 @@ class Api::SubscriptionsController < ApiController
 
   def show
     if @account.subscription(api_subscription_url(@account.id)).valid?(params['hub.topic'])
+      Rails.logger.debug "PuSH confirmation with lease_seconds: #{params['hub.lease_seconds']}"
       @account.update(subscription_expires_at: Time.now + (params['hub.lease_seconds'].to_i).seconds)
       render plain: HTMLEntities.new.encode(params['hub.challenge']), status: 200
     else