mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 19:59:54 -05:00
### Does this PR have any customer impact? No ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Livesite ### 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? ### ChangeLog (Refer [Template](../oss/CHANGELOG.md)) ### Description - Add logging of Postgres PID in error messages - Add more logging in the create indexes path ---- #### AI description (iteration 1) #### PR Classification This PR implements logging improvements to enhance diagnostics and error tracing. #### PR Summary The changes refine logging functionality across multiple components by capturing additional context and improving log formatting. - `pgmongo/src/infrastructure/logger_hooks.c`: Added a `log_raw_message` flag and corresponding logic to capture raw log messages and promote detail logs. - `gateway/managed/Mongo.Postgres.Runtime`: Updated various files (including `PostgresClient.cs`, `PostgresClientProvider.cs`, `SystemPostgresClient.cs`, `PostgresConnectionHandle.cs`, and related tests) to include the backend process ID in exception, retry, and connection logs. - `gateway/managed/Compute.Core/Diagnostics/DiagnosticsTrace.cs`: Enhanced exception tracing by incorporating a log level indicator in trace messages. - `oss/pg_documentdb/src/commands/create_indexes_background.c`: Improved index creation logging by adding detailed context (file name, line number, and max attempt notifications). <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->