mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-06 11:02:50 -05:00
Improve log infrastructure to output postgres, gateway and other logs to docker log for better visibility. ---- #### AI description (iteration 1) #### PR Classification This pull request improves the log infrastructure by centralizing log management, enhancing log streaming, and adding graceful shutdown handling. #### PR Summary The changes standardize logging across components by implementing dynamic log streaming, centralized log directory setup, and proper process cleanup on container shutdown. - `oss/scripts/emulator_entrypoint.sh`: Added a `cleanup` function and signal traps to gracefully terminate log streaming and gateway processes. - `oss/scripts/emulator_entrypoint.sh`: Introduced the `start_log_streaming` function to stream logs for PostgreSQL, OSS server, and gateway with configurable prefixes. - `oss/scripts/emulator_entrypoint.sh`: Configured centralized log directory creation, symlink creation for PostgreSQL logs, and updated log redirections using environment variables. <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->