Skip to content

Commit d70b34d

Browse files
committed
Standardize log patterns across all services for consistency.
1 parent d1cff32 commit d70b34d

File tree

6 files changed

+63
-59
lines changed

6 files changed

+63
-59
lines changed
Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
[program:backend]
22
command=/opt/appsmith/run-with-env.sh /opt/appsmith/run-java.sh
3-
priority=20
4-
autostart=true
53
autorestart=true
6-
startsecs=20
7-
startretries=3
8-
stdout_logfile=%(ENV_APPSMITH_LOG_DIR)s/%(program_name)s/%(program_name)s-%(ENV_HOSTNAME)s.log
4+
autostart=true
5+
priority=20
96
redirect_stderr=true
10-
stdout_logfile_maxbytes=10MB
11-
stderr_logfile_maxbytes=10MB
12-
stdout_logfile_backups=10
13-
stderr_logfile_backups=10
14-
stdout_events_enabled=true
7+
startretries=3
8+
startsecs=20
159
stderr_events_enabled=true
10+
stderr_logfile=%(ENV_APPSMITH_LOG_DIR)s/%(program_name)s/%(ENV_HOSTNAME)s/stderr.log
11+
stderr_logfile_backups=0
12+
stderr_logfile_maxbytes=50MB
13+
stdout_events_enabled=true
14+
stdout_logfile=%(ENV_APPSMITH_LOG_DIR)s/%(program_name)s/%(ENV_HOSTNAME)s/stdout.log
15+
stdout_logfile_backups=0
16+
stdout_logfile_maxbytes=50MB
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
[program:editor]
22
command=/opt/appsmith/run-with-env.sh /opt/appsmith/run-caddy.sh
3-
priority=25
4-
autostart=true
53
autorestart=true
6-
startsecs=0
4+
autostart=true
5+
priority=25
76
startretries=3
8-
stdout_logfile=%(ENV_APPSMITH_LOG_DIR)s/%(program_name)s/access-%(ENV_HOSTNAME)s.log
9-
stderr_logfile=%(ENV_APPSMITH_LOG_DIR)s/%(program_name)s/error-%(ENV_HOSTNAME)s.log
10-
stdout_logfile_maxbytes=10MB
11-
stderr_logfile_maxbytes=10MB
12-
stdout_logfile_backups=2
13-
stderr_logfile_backups=2
14-
stdout_events_enabled=true
7+
startsecs=0
158
stderr_events_enabled=true
9+
stderr_logfile=%(ENV_APPSMITH_LOG_DIR)s/%(program_name)s/%(ENV_HOSTNAME)s/stderr.log
10+
stderr_logfile_backups=0
11+
stderr_logfile_maxbytes=50MB
12+
stdout_events_enabled=true
13+
stdout_logfile=%(ENV_APPSMITH_LOG_DIR)s/%(program_name)s/%(ENV_HOSTNAME)s/stdout.log
14+
stdout_logfile_backups=0
15+
stdout_logfile_maxbytes=50MB
1616
stopsignal=QUIT
Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
[program:rts]
22
directory=/opt/appsmith/rts/bundle
33
command=/opt/appsmith/run-with-env.sh node server.js
4-
priority=15
5-
autostart=true
64
autorestart=true
7-
startsecs=0
8-
startretries=3
9-
stdout_logfile=%(ENV_APPSMITH_LOG_DIR)s/%(program_name)s/%(program_name)s-%(ENV_HOSTNAME)s.log
5+
autostart=true
6+
priority=15
107
redirect_stderr=true
11-
stdout_logfile_maxbytes=10MB
12-
stderr_logfile_maxbytes=10MB
13-
stdout_logfile_backups=2
14-
stderr_logfile_backups=2
15-
stdout_events_enabled=true
8+
startretries=3
9+
startsecs=0
1610
stderr_events_enabled=true
11+
stderr_logfile=%(ENV_APPSMITH_LOG_DIR)s/%(program_name)s/%(ENV_HOSTNAME)s/stderr.log
12+
stderr_logfile_backups=0
13+
stderr_logfile_maxbytes=50MB
14+
stdout_events_enabled=true
15+
stdout_logfile=%(ENV_APPSMITH_LOG_DIR)s/%(program_name)s/%(ENV_HOSTNAME)s/stdout.log
16+
stdout_logfile_backups=0
17+
stdout_logfile_maxbytes=50MB
Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
[program:mongodb]
22
directory=/appsmith-stacks/data/mongodb
33
command=mongod --port 27017 --dbpath . --logpath %(ENV_APPSMITH_LOG_DIR)s/%(program_name)s/db.log --replSet mr1 --keyFile %(ENV_MONGODB_TMP_KEY_PATH)s --bind_ip localhost
4-
priority=10
5-
autostart=true
64
autorestart=true
7-
startsecs=10
8-
startretries=3
9-
stdout_logfile=%(ENV_APPSMITH_LOG_DIR)s/%(program_name)s/%(program_name)s.log
5+
autostart=true
6+
priority=10
107
redirect_stderr=true
11-
stdout_logfile_maxbytes=10MB
12-
stderr_logfile_maxbytes=10MB
13-
stdout_logfile_backups=2
14-
stderr_logfile_backups=2
15-
stdout_events_enabled=true
8+
startretries=3
9+
startsecs=10
1610
stderr_events_enabled=true
11+
stderr_logfile=%(ENV_APPSMITH_LOG_DIR)s/%(program_name)s/%(ENV_HOSTNAME)s/stderr.log
12+
stderr_logfile_backups=0
13+
stderr_logfile_maxbytes=50MB
14+
stdout_events_enabled=true
15+
stdout_logfile=%(ENV_APPSMITH_LOG_DIR)s/%(program_name)s/%(ENV_HOSTNAME)s/stdout.log
16+
stdout_logfile_backups=0
17+
stdout_logfile_maxbytes=50MB

deploy/docker/fs/opt/appsmith/templates/supervisord/postgres.conf

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
directory=/appsmith-stacks/data/postgres/main
33
user=postgres
44
command=/opt/appsmith/run-postgres.sh
5-
autostart=true
65
autorestart=true
7-
startretries=3
8-
stdout_logfile=%(ENV_APPSMITH_LOG_DIR)s/%(program_name)s/%(program_name)s.log
6+
autostart=true
97
redirect_stderr=true
10-
stdout_logfile_maxbytes=10MB
11-
stderr_logfile_maxbytes=10MB
12-
stdout_logfile_backups=2
13-
stderr_logfile_backups=2
14-
stdout_events_enabled=true
8+
startretries=3
159
stderr_events_enabled=true
16-
10+
stderr_logfile=%(ENV_APPSMITH_LOG_DIR)s/%(program_name)s/%(ENV_HOSTNAME)s/stderr.log
11+
stderr_logfile_backups=0
12+
stderr_logfile_maxbytes=50MB
13+
stdout_events_enabled=true
14+
stdout_logfile=%(ENV_APPSMITH_LOG_DIR)s/%(program_name)s/%(ENV_HOSTNAME)s/stdout.log
15+
stdout_logfile_backups=0
16+
stdout_logfile_maxbytes=50MB

deploy/docker/fs/opt/appsmith/templates/supervisord/redis.conf

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@ directory=/etc/redis
33
; The `--save` is for saving session data to disk more often, so recent sessions aren't cleared on restart.
44
; The empty string to `--logfile` is for logging to stdout so that supervisor can capture it.
55
command=redis-server --save 15 1 --dir /appsmith-stacks/data/redis --daemonize no --logfile ""
6-
priority=5
7-
autostart=true
86
autorestart=true
9-
startsecs=0
10-
startretries=3
11-
stdout_logfile=%(ENV_APPSMITH_LOG_DIR)s/%(program_name)s/%(program_name)s.log
7+
autostart=true
8+
priority=5
129
redirect_stderr=true
13-
stdout_logfile_maxbytes=10MB
14-
stderr_logfile_maxbytes=10MB
15-
stdout_logfile_backups=2
16-
stderr_logfile_backups=2
17-
stdout_events_enabled=true
10+
startretries=3
11+
startsecs=0
1812
stderr_events_enabled=true
13+
stderr_logfile=%(ENV_APPSMITH_LOG_DIR)s/%(program_name)s/%(ENV_HOSTNAME)s/stderr.log
14+
stderr_logfile_backups=0
15+
stderr_logfile_maxbytes=50MB
16+
stdout_events_enabled=true
17+
stdout_logfile=%(ENV_APPSMITH_LOG_DIR)s/%(program_name)s/%(ENV_HOSTNAME)s/stdout.log
18+
stdout_logfile_backups=0
19+
stdout_logfile_maxbytes=50MB

0 commit comments

Comments
 (0)