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

How to disable these kinds of error outputs #35

Open
KianBrose opened this issue Sep 15, 2024 · 1 comment
Open

How to disable these kinds of error outputs #35

KianBrose opened this issue Sep 15, 2024 · 1 comment

Comments

@KianBrose
Copy link

image

How do I disable / completely remove these errors that seem to be printed out by the library?

@stephengold
Copy link
Owner

The brute-force way to mask this warning is to use the java.util.logging package:

import java.util.logging.Level;
// ...
PhysicsSpace.logger.setLevel(Level.SEVERE);

However, I don't recommend doing so because the warning indicates a bug in code that invokes the library. Instead of masking the warning, you (or whoever wrote the code) should troubleshoot the bug.

The buggy code is either trying to remove rigid bodies that have already been removed, or else it's trying to remove them from a space to which they were never added.

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

2 participants