mirror of
https://github.com/tw93/Mole.git
synced 2026-03-22 19:40:07 +00:00
fix: move logs to ~/Library/Logs/mole, add system idle assets cleanup
- Move log files from ~/.config/mole/ to ~/Library/Logs/mole/ per
macOS convention. Fixes #569.
- Add safe_sudo_find_delete for /Library/Application Support/
com.apple.idleassetsd/Customer/ screensaver videos. Closes #570.
- Update tests to reflect new log file paths.
This commit is contained in:
@@ -21,9 +21,9 @@ fi
|
||||
# Logging Configuration
|
||||
# ============================================================================
|
||||
|
||||
readonly LOG_FILE="${HOME}/.config/mole/mole.log"
|
||||
readonly DEBUG_LOG_FILE="${HOME}/.config/mole/mole_debug_session.log"
|
||||
readonly OPERATIONS_LOG_FILE="${HOME}/.config/mole/operations.log"
|
||||
readonly LOG_FILE="${HOME}/Library/Logs/mole/mole.log"
|
||||
readonly DEBUG_LOG_FILE="${HOME}/Library/Logs/mole/mole_debug_session.log"
|
||||
readonly OPERATIONS_LOG_FILE="${HOME}/Library/Logs/mole/operations.log"
|
||||
readonly LOG_MAX_SIZE_DEFAULT=1048576 # 1MB
|
||||
readonly OPLOG_MAX_SIZE_DEFAULT=5242880 # 5MB
|
||||
|
||||
|
||||
Reference in New Issue
Block a user