incubator-hugegraph icon indicating copy to clipboard operation
incubator-hugegraph copied to clipboard

fix(docker): enable docker logs for pd/store/server containers

Open bitflicker64 opened this issue 8 months ago • 0 comments

[Improvement] docker logs shows no application output for HugeGraph containers

Environment

  • Server Version: 1.7.0
  • Backend: HStore
  • Deployment: docker-compose

Problem

docker logs hg-pd / hg-store / hg-server only shows a few entrypoint startup lines. All actual JVM logs go silently to files inside the container, so debugging requires manually execing in and tailing log files — not the expected Docker workflow.

Root Cause

Two issues working together:

  1. Startup scripts redirect JVM output to a file via >> ${OUTPUT} 2>&1 before Docker can capture it
  2. The console appender is defined in all dist log4j2.xml configs but never wired to the root logger

Fix

A PR with the fix is being opened.

bitflicker64 avatar Mar 28 '26 12:03 bitflicker64