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

fix: load config before initializing logger #66

Merged
merged 2 commits into from
Dec 8, 2023
Merged

Conversation

computator
Copy link
Contributor

@computator computator commented Dec 6, 2023

This fixes the issue from BED-3824 where AzureHound was not respecting the log verbosity setting while running as a windows service.

Previously the logger was being initialized before the config file was loaded so the logger was being set to the default verbosity value. This was being done for the service because if the config was loaded before initializing the logger, the init code would panic due to verbosity being a float64 but being cast as an int.

Copy link
Contributor

@superlinkx superlinkx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, would love for @ddlees to give it a quick once over in case I'm missing something subtle. Good work!

@computator computator merged commit 6fad14d into main Dec 8, 2023
9 checks passed
@computator computator deleted the svc_verbosity branch December 8, 2023 00:59
@github-actions github-actions bot locked and limited conversation to collaborators Dec 8, 2023
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