stephengold / Libbulletjme

A JNI interface to Bullet Physics and V-HACD
https://stephengold.github.io/Libbulletjme/lbj-en/English/overview.html
Other
84 stars 10 forks source link

PhysicsRigidBody lots of excess logging #22

Closed Spliterash closed 1 year ago

Spliterash commented 1 year ago

After I updated the library to a new version, I don’t remember which one, the whole console turned into

[16:38:48] [Server Physics Thread/INFO]: [com.jme3.bullet.objects.PhysicsRigidBody] Created 1903ece3360.

image

Can you please change log level inside com/jme3/bullet/objects/PhysicsRigidBody.java:611

stephengold commented 1 year ago

This results from an intentional change made between v17.3.0 and v17.4.0, at https://github.com/stephengold/Libbulletjme/commit/7d6222fdedc7ad8659d996d8c2291e2f82ee8f88

Prior to the change, rigid-body creation was logged only at the FINE logging level. Starting with v17.4.0, it is logged at the INFO level, which seems more appropriate.

Since you don't want this logging, the appropriate workaround would be something like:

    PhysicsRigidBody.logger2.setLevel(Level.WARNING);
Spliterash commented 1 year ago

Thanks