From da4348802432690d8e23d3b8cfe17b8038fd439b Mon Sep 17 00:00:00 2001 From: Daniel Samson <12231216+daniel-samson@users.noreply.github.com> Date: Wed, 21 Jan 2026 22:02:28 +0000 Subject: [PATCH] fix(logging): use consistent /tmp/barn/logs path for service logs The previous configuration used ${java.io.tmpdir} which resolves to /var/folders/... on macOS, while the data directory uses /tmp/barn. This caused a mismatch where logs and data were in different locations. Changed to use explicit /tmp/barn/logs as default for both FILE and JSON appenders to match the ConfigDefaults.getDefaultBaseDir() path. Co-Authored-By: Claude Opus 4.5 --- src/main/resources/logback.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml index e90a441..04e4bba 100644 --- a/src/main/resources/logback.xml +++ b/src/main/resources/logback.xml @@ -11,9 +11,9 @@ - ${BARN_LOG_DIR:-${java.io.tmpdir}/barn/logs}/barn.log + ${BARN_LOG_DIR:-/tmp/barn/logs}/barn.log - ${BARN_LOG_DIR:-${java.io.tmpdir}/barn/logs}/barn.%d{yyyy-MM-dd}.%i.log.gz + ${BARN_LOG_DIR:-/tmp/barn/logs}/barn.%d{yyyy-MM-dd}.%i.log.gz 10MB 7 100MB @@ -25,9 +25,9 @@ - ${BARN_LOG_DIR:-${java.io.tmpdir}/barn/logs}/barn.json.log + ${BARN_LOG_DIR:-/tmp/barn/logs}/barn.json.log - ${BARN_LOG_DIR:-${java.io.tmpdir}/barn/logs}/barn.json.%d{yyyy-MM-dd}.%i.log.gz + ${BARN_LOG_DIR:-/tmp/barn/logs}/barn.json.%d{yyyy-MM-dd}.%i.log.gz 10MB 7