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

There is no way to turn logging off #31

Open
Frank1234 opened this issue Aug 27, 2024 · 1 comment
Open

There is no way to turn logging off #31

Frank1234 opened this issue Aug 27, 2024 · 1 comment
Labels
bug Something isn't working enhancement New feature or request

Comments

@Frank1234
Copy link
Collaborator

I would expect a Q42StatsLogLevel.None option

Now my app logs an error every time the Q42Stats is called?

@Frank1234 Frank1234 added enhancement New feature or request bug Something isn't working labels Aug 27, 2024
@Frank1234
Copy link
Collaborator Author

Frank1234 commented Aug 27, 2024

also, this line is confusing var logLevel = if (BuildConfig.DEBUG) Q42StatsLogLevel.Verbose else Q42StatsLogLevel.Error

Since you never release a debug version of the library, this will always go into the "else". The code is only used when using the library's test app that uses this module directly. I would move it into the test app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant