Add a little bit of info to create_invitee logging
This commit is contained in:
parent
3b2d323448
commit
bc22851dd2
1 changed files with 3 additions and 1 deletions
|
|
@ -75,7 +75,9 @@ class Invitation < ActiveRecord::Base
|
|||
invitee.reload
|
||||
end
|
||||
invitee.invite!(:email => (opts[:service] == 'email'))
|
||||
Rails.logger.info("event=invitation_sent to=#{opts[:identifier]} #{"inviter=#{opts[:from].diaspora_handle}" if opts[:from]}")
|
||||
log_string = "event=invitation_sent to=#{opts[:identifier]} service=#{opts[:service]} "
|
||||
log_string << "inviter=#{opts[:from].diaspora_handle} inviter_uid=#{opts[:from].id} inviter_created_at_unix=#{opts[:from].created_at.to_i}" if opts[:from]
|
||||
Rails.logger.info(log_string)
|
||||
invitee
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue