Skip to content

Change the LOG_SYSLOG_VIS parameters to include VIS_NOSLASH #793

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

Open
wants to merge 1 commit into
base: latestw_all
Choose a base branch
from

Conversation

jaymzjulian
Copy link

PR Summary

Change the LOG_SYSLOG_VIS parameters to include VIS_NOSLASH so that it's possible to log slashes through to event logs - this allows, amoungst other things, pass through of structured logging when built with that patch.

Before:

debug3("logging a slash: \\ hi!")"

would output:

logging a slash: \\ hi!

instead of the correct:

logging a slash: \ hi!

PR Context

This is important to us, since a logger we care about sends correctly escaped text through (specifically, the structured logging patch from hyperscale), causing serialisation issues. (For our build, we've made current set of hyperscale patches work on windows - there might be a few more PR's to come around a couple of those integration points, but potentially if there's a desire for anything in there to hit windows, we could do PRs for that too)

Change the LOG_SYSLOG_VIS parameters to include VIS_NOSLASH so that it's
possible to log slashes through to event logs - this allows, amoungst other
things, pass through of structured logging when built with that patch.

Before:
```
debug3("logging a slash: \\ hi!")"
```

would output:
```
logging a slash: \\ hi!
```

instead of the correct:
```
logging a slash: \ hi!
```

This is important to us, since a logger we care about sends correctly escaped
text through (specifically, the structured logging patch from hyperscale),
causing serialisation issues.
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.

1 participant