enhancement: unify logger level setting using obs env instead of RUST_LOG (#1529)

Signed-off-by: heihutu <30542132+heihutu@users.noreply.github.com>
Signed-off-by: majinghe <42570491+majinghe@users.noreply.github.com>
Co-authored-by: heihutu <30542132+heihutu@users.noreply.github.com>
This commit is contained in:
majinghe
2026-01-20 12:09:41 +08:00
committed by GitHub
parent d578707f95
commit 14ce251e3b
6 changed files with 7 additions and 8 deletions
-1
View File
@@ -87,7 +87,6 @@
RUSTFS_VOLUMES="http://rustfs-node{1...4}:9000/data/rustfs{0...3}"
RUSTFS_ADDRESS=":9000"
RUSTFS_CONSOLE_ENABLE=true
RUST_LOG=error
RUSTFS_OBS_LOG_DIRECTORY="/var/logs/rustfs/"
RUSTFS_EXTERNAL_ADDRESS=0.0.0.0:9000
owner: root
@@ -47,7 +47,6 @@ services:
- RUSTFS_CONSOLE_CORS_ALLOWED_ORIGINS=*
- RUSTFS_ACCESS_KEY=dev-admin
- RUSTFS_SECRET_KEY=dev-password
- RUST_LOG=debug
- RUSTFS_OBS_LOGGER_LEVEL=debug
volumes:
- rustfs-dev-data:/data
+1 -1
View File
@@ -84,7 +84,7 @@ quick_dev() {
-e RUSTFS_CONSOLE_CORS_ALLOWED_ORIGINS="*" \
-e RUSTFS_ACCESS_KEY="dev-admin" \
-e RUSTFS_SECRET_KEY="dev-secret" \
-e RUST_LOG="debug" \
-e RUSTFS_OBS_LOGGER_LEVEL="debug" \
-v rustfs-dev-data:/data \
rustfs/rustfs:latest
@@ -105,7 +105,7 @@ deploy_development() {
-e RUSTFS_CONSOLE_CORS_ALLOWED_ORIGINS="*" \
-e RUSTFS_ACCESS_KEY="dev-access" \
-e RUSTFS_SECRET_KEY="dev-secret" \
-e RUST_LOG="debug" \
-e RUSTFS_OBS_LOGGER_LEVEL="debug" \
-v rustfs-dev-data:/data \
rustfs/rustfs:latest