comment ids in the logs

This commit is contained in:
Raphael 2010-11-27 16:21:21 -05:00
parent 64f7a20ff4
commit 49f4ec1432
2 changed files with 3 additions and 2 deletions

View file

@ -23,7 +23,7 @@ module SocketsHelper
end
rescue Exception => e
Rails.logger.error("event=socket_render status=fail user=#{user.diaspora_handle} object=#{object.id.to_s}")
raise e
raise e.original_exception
end
action_hash = {:class =>object.class.to_s.underscore.pluralize, :html => v, :post_id => obj_id(object)}
action_hash.merge! opts

View file

@ -19,5 +19,6 @@
- log_string << "pr_link=#{(post_person_link - post_image_link)*1000} "
- log_string << "markdown=#{(markdownified - post_image_link)*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)