Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Feb 28, 2024

Conversation

benediktwerner
Copy link
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.

Copy link
Member

@tommysitu tommysitu left a comment

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
3 checks passed
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