Skip to content

Conversation

@abraunegg
Copy link
Owner

This update improves the robustness of application logging by ensuring that invalid or non-writeable log directory configurations no longer cause the client to exit unexpectedly.

Key changes:

  • The calculateLogDirectory() function now performs an explicit writeability check on the resolved log_dir path.
  • If the directory exists but cannot be written to (e.g., permissions such as /var/log/onedrive owned by root or another user), the client logs an error and automatically falls back to using the user’s home directory for runtime logs if enabled.
  • Runtime behaviour now matches the intended design: logging misconfiguration must never stop or terminate the application.

…ir is not writeable

This update improves the robustness of application logging by ensuring that invalid or non-writeable log directory configurations no longer cause the client to exit unexpectedly.

Key changes:
* The calculateLogDirectory() function now performs an explicit writeability check on the resolved log_dir path.
* If the directory exists but cannot be written to (e.g., permissions such as /var/log/onedrive owned by root or another user), the client logs an error and automatically falls back to using the user’s home directory for runtime logs if enabled.
* Runtime behaviour now matches the intended design: logging misconfiguration must never stop or terminate the application.
@abraunegg abraunegg added this to the v2.5.10 milestone Dec 2, 2025
@abraunegg abraunegg merged commit 11e07c4 into master Dec 2, 2025
10 checks passed
@abraunegg abraunegg deleted the fix-log-directory-use-if-permissions-are-wrong branch December 6, 2025 22:11
@abraunegg
Copy link
Owner Author

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Repository owner locked and limited conversation to collaborators Dec 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants