Use the Unicode translation modifier to log server IDs and cluster names#599
Merged
the-mikedavis merged 1 commit intomainfrom Mar 23, 2026
Merged
Conversation
`ra:server_id()`s are currently formatted with `~w` which escapes atom
characters above the ASCII range. We can add the Unicode translation
modifier `t` to print the Unicode characters. For example, before:
2026-03-21 12:19:33.235018-04:00 [info] <0.1008.0> queue 'qq-🐇' in vhost '/': granting vote for {'%2F_qq-\x{1F407}','rabbit-1@mango2'} with last {index, term} {0,0} for term 1 previous term was 0
After:
2026-03-21 12:27:43.829863-04:00 [info] <0.1008.0> queue 'qq-🐇' in vhost '/': granting vote for {'%2F_qq-🐇','rabbit-1@mango2'} with last {index, term} {0,0} for term 1 previous term was 0
kjnilsson
approved these changes
Mar 23, 2026
jimsynz
pushed a commit
to jimsynz/neonfs
that referenced
this pull request
Mar 29, 2026
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [ra](https://hex.pm/packages/ra) ([source](https://github.com/rabbitmq/ra)) | prod | patch | `3.1.0` → `3.1.2` | --- ### Release Notes <details> <summary>rabbitmq/ra (ra)</summary> ### [`v3.1.2`](https://github.com/rabbitmq/ra/releases/tag/v3.1.2) [Compare Source](rabbitmq/ra@v3.1.1...v3.1.2) #### What's Changed - `gen_batch_server` was bumped to `0.9.2` to significantly reduce the risk of an [OOM scenario](rabbitmq/gen-batch-server#27) that affects Ra-based systems **Full Changelog**: <rabbitmq/ra@v3.1.1...v3.1.2> ### [`v3.1.1`](https://github.com/rabbitmq/ra/releases/tag/v3.1.1) [Compare Source](rabbitmq/ra@v3.1.0...v3.1.1) #### What's Changed - Use the Unicode translation modifier to log server IDs and cluster names by [@​the-mikedavis](https://github.com/the-mikedavis) in [#​599](rabbitmq/ra#599) - Export `ra:membership()` type by [@​the-mikedavis](https://github.com/the-mikedavis) in [#​603](rabbitmq/ra#603) - Do not clear pending if points to the checkpoint by [@​deadtrickster](https://github.com/deadtrickster) in [#​602](rabbitmq/ra#602) - Fix doubly-wrapped log entries after sparse write and recovery by [@​ansd](https://github.com/ansd) in [#​601](rabbitmq/ra#601) **Full Changelog**: <rabbitmq/ra@v3.1.0...v3.1.1> </details> --- ### Configuration 📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) in timezone Pacific/Auckland, Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) in timezone Pacific/Auckland. 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My45MC4xIiwidXBkYXRlZEluVmVyIjoiNDMuOTAuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUiXX0=--> Reviewed-on: https://harton.dev/project-neon/neonfs/pulls/84 Co-authored-by: Renovate Bot <bot@harton.nz> Co-committed-by: Renovate Bot <bot@harton.nz>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a mainly cosmetic change to improve some logs.
ra:server_id()s are currently formatted with~wwhich escapes atom characters above the ASCII range. We can add the Unicode translation modifiertto print the Unicode characters. For example, before:After: