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

Add debug mode (remove default debug logging) #69

Closed
memen45 opened this issue Feb 20, 2023 · 0 comments
Closed

Add debug mode (remove default debug logging) #69

memen45 opened this issue Feb 20, 2023 · 0 comments

Comments

@memen45
Copy link
Owner

memen45 commented Feb 20, 2023

For debugging, many System.println() statements are scattered throughout the code base. As it seems, these statements are executed in production as well and may slow down the app or cause Out of Memory errors.

Proposed solution

Add a global boolean variable debug and wrap all println statements:

if (debug) {
    System.println("Log message");
}

The debug variable should be loaded on app start with the debug setting. A menu item should be created in the settings menu to enable / disabe debugging. Note that even after enabling the debug setting, the user has to create the log file manually on the device to obtain any logs.

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

No branches or pull requests

1 participant