Adding some logging to requesting/subscribing
This commit is contained in:
parent
a52adba95b
commit
d8ebbf8d26
2 changed files with 2 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ class RequestsController < ApplicationController
|
||||||
|
|
||||||
def create
|
def create
|
||||||
rel_hash = relationship_flow(params[:request][:destination_url])
|
rel_hash = relationship_flow(params[:request][:destination_url])
|
||||||
|
Rails.logger.info("Sending request: #{rel_hash}")
|
||||||
puts rel_hash
|
puts rel_hash
|
||||||
@request = current_user.send_request(rel_hash)
|
@request = current_user.send_request(rel_hash)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@ module RequestsHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
f = Redfinger.finger(identifier)
|
f = Redfinger.finger(identifier)
|
||||||
|
Rails.logger.info("The webfinger to #{identifier} returned #{f}")
|
||||||
action = subscription_mode(f)
|
action = subscription_mode(f)
|
||||||
url = subscription_url(action, f)
|
url = subscription_url(action, f)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue