comment ids in the logs
This commit is contained in:
parent
64f7a20ff4
commit
49f4ec1432
2 changed files with 3 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ module SocketsHelper
|
||||||
end
|
end
|
||||||
rescue Exception => e
|
rescue Exception => e
|
||||||
Rails.logger.error("event=socket_render status=fail user=#{user.diaspora_handle} object=#{object.id.to_s}")
|
Rails.logger.error("event=socket_render status=fail user=#{user.diaspora_handle} object=#{object.id.to_s}")
|
||||||
raise e
|
raise e.original_exception
|
||||||
end
|
end
|
||||||
action_hash = {:class =>object.class.to_s.underscore.pluralize, :html => v, :post_id => obj_id(object)}
|
action_hash = {:class =>object.class.to_s.underscore.pluralize, :html => v, :post_id => obj_id(object)}
|
||||||
action_hash.merge! opts
|
action_hash.merge! opts
|
||||||
|
|
|
||||||
|
|
@ -19,5 +19,6 @@
|
||||||
- log_string << "pr_link=#{(post_person_link - post_image_link)*1000} "
|
- log_string << "pr_link=#{(post_person_link - post_image_link)*1000} "
|
||||||
- log_string << "markdown=#{(markdownified - post_image_link)*1000} "
|
- log_string << "markdown=#{(markdownified - post_image_link)*1000} "
|
||||||
- log_string << "time_agoed=#{(time_agoed - markdownified)*1000} "
|
- log_string << "time_agoed=#{(time_agoed - markdownified)*1000} "
|
||||||
- log_string << "total=#{(time_agoed - start)*1000}"
|
- log_string << "total=#{(time_agoed - start)*1000} "
|
||||||
|
- log_string << "comment_id=#{comment.id}"
|
||||||
- Rails.logger.info(log_string)
|
- Rails.logger.info(log_string)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue