fix(telemetry): make devnet debug_logfile config-dir-relative

xrpld resolves a relative [debug_logfile] against the config file's own
directory (docker/telemetry), not the working directory. The value
`docker/telemetry/data/logs/devnet/debug.log` therefore doubled the
prefix to docker/telemetry/docker/telemetry/... — the collector's mount
never saw the log, so no lines reached Loki.

Use the config-dir-relative form `data/logs/devnet/debug.log`, which
resolves to docker/telemetry/data/logs/devnet/debug.log — exactly the
dir the compose stack bind-mounts as /var/log/xrpld.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Pratik Mankawde
2026-07-07 21:31:59 +01:00
parent f99a1c5310
commit e4a78684e1

View File

@@ -34,8 +34,11 @@ advisory_delete=0
[database_path]
docker/telemetry/data
# Path is resolved relative to this config file's directory (docker/telemetry),
# so this writes to docker/telemetry/data/logs/devnet/debug.log — the same
# dir the compose stack bind-mounts into the collector as /var/log/xrpld.
[debug_logfile]
docker/telemetry/data/logs/devnet/debug.log
data/logs/devnet/debug.log
[rpc_startup]
{ "command": "log_level", "severity": "debug" }