Skip to content

Commit

Permalink
bug 1388040
Browse files Browse the repository at this point in the history
  • Loading branch information
jshaughn committed Oct 25, 2016
1 parent 97d510d commit 4efc39a
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -87,6 +87,13 @@ def event_to_hash(event, ems_id = nil)
event.middleware_ref = event.context['resource_path'] # optional context for linking to resource
end
event.message ||= event.text
# at time of writing the timeline can not handle newlines or double quotes in the message. Because the
# timeline popup is not meant to show huge messages, like stack traces, just truncate after the first line.
# And replace double quotes with single quotes.
unless event.message.nil?
event.message = event.message.lines.first.strip
event.message.tr!('"', "'")
end
event.middleware_type = event.tags[TAG_RESOURCE_TYPE] # optional tag for linking to resource
{
:ems_id => ems_id,
Expand Down

0 comments on commit 4efc39a

Please sign in to comment.