Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bees: Defer full initialization until cmdline parser is done #136

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kakra
Copy link
Contributor

@kakra kakra commented Nov 17, 2019

Do not touch BeesContext until really needed. As a safety, move its
initialization after cmdline parsing. Then follow the proven design of
adding the needed default value and apply it to BeesContext later.

Also, let's set a flag when initialization after cmdline parsing is done
so we know if we already want to log an exit code.

Fixes: commit 23f3e4e
Closes: #103
Signed-off-by: Kai Krakow [email protected]

Do not touch BeesContext until really needed. As a safety, move its
initialization after cmdline parsing. Then follow the proven design of
adding the needed default value and apply it to BeesContext later.

Also, let's set a flag when initialization after cmdline parsing is done
so we know if we already want to log an exit code.

Fixes: commit 23f3e4e
Closes: Zygo#103
Signed-off-by: Kai Krakow <[email protected]>
@kakra
Copy link
Contributor Author

kakra commented Nov 18, 2019

Hmm, it's not yet quite done... During normal startup, log settings are still applied too late. But feel free to merge anyways.

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.

Some runtime options are applied too late
1 participant