Skip to content

fix(logging): 馃悰 Use script-relative log path instead of CWD-relative - #333

Merged
DouglasHalse merged 1 commit into
mainfrom
fix/cron-log-path
Jun 7, 2026
Merged

fix(logging): 馃悰 Use script-relative log path instead of CWD-relative#333
DouglasHalse merged 1 commit into
mainfrom
fix/cron-log-path

Conversation

@DouglasHalse

Copy link
Copy Markdown
Owner

When launched by cron, the working directory is typically $HOME, so the old relative "logs" path landed in /home/pi/logs/ instead of the project's logs/ directory.

Fix: derive LOG_DIR from logger.py's location on disk so it always resolves inside the project root, regardless of how the app is launched.

@DouglasHalse
DouglasHalse merged commit ede2ba2 into main Jun 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant