mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-07 03:22:46 -05:00
### Does this PR have any customer impact? No ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Logging ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) No ### Are you introducing any new config? If yes, do you have tests with and without them being set? No ### ChangeLog (Refer [Template](../oss/CHANGELOG.md)) ### Description Port support for unredacted log messages in RUM ---- #### AI description (iteration 1) #### PR Classification This PR introduces a new feature to support unredacted log messages for improved diagnostics in RUM. #### PR Summary The pull request adds a custom logging hook and macro to output unredacted messages, enhancing diagnostic details in the RUM module. - `rumutil.c`: Added `PgmongoRumUnredactedLogEmitHook`, which formats log messages, sanitizes percent signs, and emits unredacted logs. - `rumvacuum.c`: Updated logging by replacing the standard `ereport` with the new `elog_rum_unredacted` macro for detailed vacuum diagnostics. - `rum.h`: Declared the new logging function and defined the `elog_rum_unredacted` macro with a specific SQL state code. <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->