Skip to content

Add -log-no-quotes CLI flag to disable quoting/escaping of fields in logs#1115

Merged
tommysitu merged 2 commits into
SpectoLabs:masterfrom
benediktwerner:master
Feb 28, 2024
Merged

Add -log-no-quotes CLI flag to disable quoting/escaping of fields in logs#1115
tommysitu merged 2 commits into
SpectoLabs:masterfrom
benediktwerner:master

Conversation

@benediktwerner

Copy link
Copy Markdown
Contributor

It's currently quite hard to read error messages on a failed match or similar in the logs because the whole message including newlines is quoted and escaped. Even more so if the request or response also contains JSON which then leads to double quoting. This also makes it impossible to directly copy parts of the error message to adjust simulations.

Since v1.6, Logrus has an option to disable quotes which also disables escaping of fields. Adding a CLI option to enable that seemed like the most sensible option to me.

@tommysitu tommysitu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 love it

@tommysitu tommysitu merged commit b4b6e0d into SpectoLabs:master Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants