Skip to content

Commit

Permalink
perf: 优化 chen 组件日志输出
Browse files Browse the repository at this point in the history
  • Loading branch information
wojiushixiaobai committed Jan 25, 2024
1 parent 8ab0636 commit af975b4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion allinone/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ services:
environment:
SECRET_KEY: ${SECRET_KEY:-vYneAbsXUhe4BghEeedNL7nfWLwaTTmhnwQMvjYOIG25Ofzghk}
BOOTSTRAP_TOKEN: ${BOOTSTRAP_TOKEN:-K1ffDfLSIK8SV2PZj6VaxOiv8KuawlJK}
DEBUG: ${DEBUG:-FALSE}
LOG_LEVEL: ${LOG_LEVEL:-ERROR}
DB_HOST: ${DB_HOST:-mysql}
DB_PORT: ${DB_PORT:-3306}
Expand Down
2 changes: 1 addition & 1 deletion allinone/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ autorestart=true

[program:chen]
priority=100
environment=PATH="/usr/local/openjdk-17/bin:%(ENV_PATH)s", WORK_DIR="/opt/chen", COMPONENT_NAME="chen", WISP_TRACE_PROCESS=1, EXECUTE_PROGRAM="java -Dfile.encoding=utf-8 --add-opens java.base/jdk.internal.loader=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAME -XX:+ExitOnOutOfMemoryError -jar /opt/chen/chen.jar --mock.enable=false", BIND_PORT=9092, LANG=zh_CN.UTF-8
environment=GIN_MODE="release", WORK_DIR="/opt/chen", COMPONENT_NAME="chen", WISP_TRACE_PROCESS=1, EXECUTE_PROGRAM="java -Dfile.encoding=utf-8 -XX:+ExitOnOutOfMemoryError -jar /opt/chen/chen.jar --mock.enable=false --logging.level.root=ERROR", BIND_PORT=9092, LANG=zh_CN.UTF-8
directory=/opt/chen/
command=/usr/local/bin/wisp
stdout_logfile=/dev/stdout
Expand Down
3 changes: 2 additions & 1 deletion chen/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ until /usr/local/bin/check ${CORE_HOST}/api/health/; do
sleep 2
done

export GIN_MODE=release
export WORK_DIR=/opt/chen
export COMPONENT_NAME=chen
export WISP_TRACE_PROCESS=1
export EXECUTE_PROGRAM="java -Dfile.encoding=utf-8 --add-opens java.base/jdk.internal.loader=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAME -XX:+ExitOnOutOfMemoryError -jar /opt/chen/chen.jar --mock.enable=false"
export EXECUTE_PROGRAM="java -Dfile.encoding=utf-8 -XX:+ExitOnOutOfMemoryError -jar /opt/chen/chen.jar --mock.enable=false"

if [ ! "$LOG_LEVEL" ]; then
LOG_LEVEL=ERROR
Expand Down
2 changes: 1 addition & 1 deletion config_example.conf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ REDIS_PASSWORD=8URXPL2x3HZMi7xoGTdk3Upj
# Core
SECRET_KEY=B3f2w8P2PfxIAS7s4URrD9YmSbtqX4vXdPUL217kL9XPUOWrmy
BOOTSTRAP_TOKEN=7Q11Vz6R2J6BLAdO
DEBUG=FALSE
# DEBUG=FALSE
LOG_LEVEL=ERROR
DOMAINS=

Expand Down

0 comments on commit af975b4

Please sign in to comment.