PromucFlow_constructor/deploy/docker/fs/opt/appsmith
Wyatt Walter 336d318222
fix: logs cleanup (#41275)
## Description
> [!TIP]  
> _Add a TL;DR when the description is longer than 500 words or
extremely technical (helps the content, marketing, and DevRel team)._
>
> _Please also include relevant motivation and context. List any
dependencies that are required for this change. Add links to Notion,
Figma or any other documents that might be relevant to the PR._

Addresses at least a couple of issues in a number of support tickets
about logs volume:

- we were double-logging all messages via Supervisor's
eventlistener:stdout configuration. Once to the sub-process's logs, and
once to another file in the logs/supervisor directory. The purpose of
this listener is to send logs to stdout/stderr so they can be picked up
by log aggregation services, no need to write again.
- we had debug logs enabled for Caddy which was creating quite a bit of
log volume in `logs/editor/<hostname>-stderr.log`
- bonus fix: in a multi-container deployment, all containers were trying
to write to `logs/supervisor/supervisord.log` making trying to
troubleshoot those deployments more difficult.

> [!WARNING]  
> _If no issue exists, please create an issue first, and check with the
maintainers if the issue is valid._

## Automation

/ok-to-test tags="@tag.Sanity"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/18222964844>
> Commit: 54b5a1a1c52408ae30472d1b5f25a157603fd626
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=18222964844&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.Sanity`
> Spec:
> <hr>Fri, 03 Oct 2025 13:38:52 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [x] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Chores**
* Simplified logging to route process output to standard output with
hostname tagging, reducing per-file logs and disk usage.
* Improved reliability of log capture with a dedicated stdout event
handler.
* Reduced log noise by disabling debug logging in the web server
configuration.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-10-03 11:08:14 -05:00
..
baseline-ce chore: Add mover script for Mongo to postgres migration (#36458) 2024-09-25 15:22:02 +05:30
postgres fix: Add password based auth for postgres (#37068) 2024-12-06 10:49:27 +05:30
templates chore: move the rts.conf code to shell file (#38859) 2025-01-28 00:22:58 -06:00
auto_heal.sh chore: Fix auto heal script crash if curl times out (#29472) 2023-12-08 15:22:26 +05:30
caddy-reconfigure.mjs fix: logs cleanup (#41275) 2025-10-03 11:08:14 -05:00
diagnostics.sh Add a diagnostic script to assist in the debugging of issues with appsmith implementation (#35640) 2024-08-29 14:06:30 +05:30
entrypoint.sh fix: enhance CA certificate handling in entrypoint script (#40933) 2025-07-03 14:44:21 +05:30
generate-infra-details.sh chore: Update incorrect docker tagging and add fargate tag in deployment telemetry (#33472) 2024-05-27 17:16:13 +05:30
healthcheck.sh chore: Health check only backend, caddy and RTS (#32891) 2024-04-25 10:36:13 +05:30
install_docker.sh chore: replaced decommisioned urls with new ones (#27786) 2023-10-05 12:07:18 +05:30
JFR-recording-24-hours.sh chore: JFR 24 hour script with logs file (#36041) 2024-09-13 12:46:54 +05:30
mongodb-fixer.sh chore: Use tlog instead of echo in more places (#34182) 2024-06-11 20:10:33 +05:30
pg-upgrade.sh fix: cleanup stale postgres postmaster.pid (#35171) 2024-07-26 12:52:49 +05:30
pg-utils.sh fix: Server startup issue for external postgres (#38019) 2024-12-06 16:38:12 +05:30
pull_resource.sh
record-heap-dump.sh chore: preStop scripts (#35785) 2024-08-21 11:43:40 +05:30
record-thread-dump.sh chore: preStop scripts (#35785) 2024-08-21 11:43:40 +05:30
run-caddy.sh chore: Switch to vanilla Caddy, when rate limiting is disabled (#33387) 2024-05-24 13:11:56 +05:30
run-java.sh chore: create appsmith schema for postgres (#36591) 2024-09-30 23:42:56 +05:30
run-postgres.sh chore: Add Postgres bin to PATH (#34265) 2024-06-17 12:53:34 +05:30
run-rts.sh chore: Enable source maps for RTS for better error traces (#39099) 2025-02-06 21:55:43 +05:30
run-starting-page-init.sh feat: Caddy (#28081) 2023-12-05 10:47:36 +05:30
run-with-env.sh feat: add git route aspect for branch handling (#41097) 2025-07-21 14:11:34 +05:30
start_app.sh
starting-page-init.py feat: add ability to change application logs location (#31926) 2024-03-20 19:45:48 +05:30
thread-profile-start.sh chore: preStop scripts (#35785) 2024-08-21 11:43:40 +05:30
thread-profile-stop.sh chore: Added multiple scripts to trigger profiles (#35546) 2024-08-12 19:29:47 +05:30