Skip to content

Commit 582fb2c

Browse files
authored
add: Env var SE_SUPERVISORD_LOG_LEVEL to set supervisord log level (#2317)
Signed-off-by: Viet Nguyen Duc <[email protected]>
1 parent fffb8da commit 582fb2c

File tree

8 files changed

+19
-4
lines changed

8 files changed

+19
-4
lines changed

Base/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ ENV SE_BIND_HOST=false \
147147
# Boolean value, maps "--reject-unsupported-caps"
148148
SE_REJECT_UNSUPPORTED_CAPS=false \
149149
SE_OTEL_JAVA_GLOBAL_AUTOCONFIGURE_ENABLED=true \
150-
SE_OTEL_TRACES_EXPORTER="otlp"
150+
SE_OTEL_TRACES_EXPORTER="otlp" \
151+
SE_SUPERVISORD_LOG_LEVEL="info"
151152

152153
CMD ["/opt/bin/entry_point.sh"]

Base/supervisord.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $
55
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
66
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
77
logfile_backups=10 ; (num of main logfile rotation backups;default 10)
8-
loglevel=info ; (log level;default info; others: debug,warn,trace)
8+
loglevel=%(ENV_SE_SUPERVISORD_LOG_LEVEL)s ; (log level;default info; others: debug,warn,trace) http://supervisord.org/logging.html
99
pidfile=/var/run/supervisor/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
1010
nodaemon=true ; (start in foreground if true;default false)
1111
minfds=1024 ; (min. avail startup file descriptors;default 1024)
@@ -14,6 +14,8 @@ minprocs=200 ; (min. avail process descriptors;
1414
[unix_http_server]
1515
file=/tmp/supervisor.sock ; (the path to the socket file)
1616
chmod=0700
17+
username=%(ENV_SEL_USER)s
18+
password=secret
1719

1820
; the below section must remain in the config file for RPC
1921
; (supervisorctl/web interface) to work, additional interfaces may be

Video/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ ENV DISPLAY_NUM=99 \
108108
SE_PRESET="-preset ultrafast" \
109109
VIDEO_FOLDER=${VIDEO_FOLDER} \
110110
SE_VIDEO_FILE_NAME=video.mp4 \
111-
SE_VIDEO_FILE_NAME_TRIM_REGEX="[:alnum:]-_"
111+
SE_VIDEO_FILE_NAME_TRIM_REGEX="[:alnum:]-_" \
112+
SE_SUPERVISORD_LOG_LEVEL="info"
112113

113114
EXPOSE 9000

Video/supervisord.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $
55
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
66
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
77
logfile_backups=10 ; (num of main logfile rotation backups;default 10)
8-
loglevel=info ; (log level;default info; others: debug,warn,trace)
8+
loglevel=%(ENV_SE_SUPERVISORD_LOG_LEVEL)s ; (log level;default info; others: debug,warn,trace) http://supervisord.org/logging.html
99
pidfile=/var/run/supervisor/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
1010
nodaemon=true ; (start in foreground if true;default false)
1111
minfds=1024 ; (min. avail startup file descriptors;default 1024)

charts/selenium-grid/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@ serverConfigMap:
247247
# nameOverride:
248248
env:
249249
SE_JAVA_OPTS: "-XX:+UseZGC"
250+
# Log level of supervisord. Accept values: critical, error, warn, info, debug, trace, blather (http://supervisord.org/logging.html)
251+
SE_SUPERVISORD_LOG_LEVEL: "info"
250252
# Custom annotations for configmap
251253
annotations: {}
252254

tests/charts/ci/base-auth-ingress-values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ global:
33
logLevel: INFO
44
stdoutProbeLog: true
55

6+
serverConfigMap:
7+
env:
8+
SE_SUPERVISORD_LOG_LEVEL: "error"
9+
610
ingress:
711
className: nginx
812
hostname: ""

tests/docker-compose-v3-test-parallel.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ services:
2323
- SE_BROWSER_ARGS_DISABLE_DSHM=--disable-dev-shm-usage
2424
- SE_BROWSER_ARGS_INCOGNITO=--incognito --incognito
2525
- SE_LOG_LEVEL=${LOG_LEVEL}
26+
- SE_SUPERVISORD_LOG_LEVEL=error
2627

2728
firefox:
2829
profiles:
@@ -43,6 +44,7 @@ services:
4344
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
4445
- SE_NODE_ENABLE_MANAGED_DOWNLOADS=true
4546
- SE_LOG_LEVEL=${LOG_LEVEL}
47+
- SE_SUPERVISORD_LOG_LEVEL=error
4648

4749
edge:
4850
profiles:
@@ -62,6 +64,7 @@ services:
6264
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
6365
- SE_NODE_ENABLE_MANAGED_DOWNLOADS=true
6466
- SE_LOG_LEVEL=${LOG_LEVEL}
67+
- SE_SUPERVISORD_LOG_LEVEL=error
6568

6669
selenium-hub:
6770
image: selenium/hub:${TAG}
@@ -74,6 +77,7 @@ services:
7477
environment:
7578
- SE_LOG_LEVEL=${LOG_LEVEL}
7679
- SE_SESSION_REQUEST_TIMEOUT=${REQUEST_TIMEOUT}
80+
- SE_SUPERVISORD_LOG_LEVEL=error
7781

7882
tests:
7983
image: docker-selenium-tests:latest

tests/docker-compose-v3-test-video.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ services:
2929
- DISPLAY_CONTAINER_NAME=browser
3030
- SE_VIDEO_FILE_NAME=${VIDEO_FILE_NAME}
3131
- SE_VIDEO_FILE_NAME_SUFFIX=${VIDEO_FILE_NAME_SUFFIX}
32+
- SE_SUPERVISORD_LOG_LEVEL=error
3233

3334
selenium-hub:
3435
image: selenium/hub:${TAG}

0 commit comments

Comments
 (0)