Skip to content

Avoid default log directory when file logging is unused - #362

Open
longlho wants to merge 1 commit into
google:masterfrom
longlho:fix/optional-log-directory
Open

longlho wants to merge 1 commit into
google:masterfrom
longlho:fix/optional-log-directory

Conversation

@longlho

@longlho longlho commented Nov 15, 2026

Copy link
Copy Markdown

Fixes #361.

Skip the default log directory when java.util.logging.config.file is set. With --nologging, also avoid creating the file handler, which would still try to open that directory.

This lets Copybara start with a read-only home when file logging is disabled or configured elsewhere. Default logging stays unchanged.

Tested //javatests/com/google/copybara:MainTest_all_tests: all 16 tests pass. Both new tests fail against the original code.

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.

Skip default log directory when logging is disabled or configured externally

1 participant