Skip to content

move log config so that logging works when detector is disabled #298

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

Merged

Conversation

nebulon42
Copy link
Contributor

When the detector is disabled then no logger is passed to setupWithParams which leads to a NPE.

I moved the logger initialization upwards and passed the logger to the method.

@joshafeinberg
Copy link
Member

Just curious, what would you expect to get logged when the plugin is disabled. This fix seems fine but I'm not sure if anything gets logged before this point

@nebulon42
Copy link
Contributor Author

Not sure if I would expect anything logged, but I would rather not expect the NullPointerException. ;-)
The CI failure is just about the signing or do you see something else that is wrong?

@joshafeinberg joshafeinberg merged commit bd0d5f0 into dropbox:main Aug 18, 2025
3 of 4 checks passed
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.

2 participants