Skip to content

Fix log message so that it's valid JSON #5

@mtwomey

Description

@mtwomey

Existing log message looks like this:

message: '{"topicId":"20343","postId":69782,"postContent":"<p><a href=\\"/users/Will1911\\" 
title=\\"@Will1911\\">@Will Adams</a> Another clarification – we wanted to begin with just the 
responsive web application, correct? This will give you the correct sizing to display on a mobile 
phone AND it will allow your customers to access it on their computer. Instead of begining with the 
mobile app, I believe you decided on the web app, but please correct me if I am mistaken! Thanks!
</p>","userId":23090277,"projectId":"4766","initiatorUserId":23090277}' } }

Either the whole thing needs to be valid JSON, or the string after 'message:' needs to be valid JSON (note the extraneous curly brackets at the end as well as the fact that things are double-escaped).

The log should lint properly at: https://jsonlint.com/

This is needed for easy parsing of the message in Sumologic.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions