Skip to content

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 kai@kaishome.de

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 <kai@kaishome.de>
@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