Disable debug messages?

I’m currently working on a project that uses a lot of plane geometries combined into a single mesh.

When I’m trying to debug my code, I can’t leave the console open while loading because the debug messages “THREE.PlaneGeometry: Consider using THREE.PlaneBufferGeometry for lower memory footprint.” spam the console, and slow down the loading of the code by displaying them in the console.

It’s hanging on some other issue, but I can’t open the console to see the errors after the page has frozen from the other issue. Also I can’t leave the console open while loading because it drastically slows down my loading time by printing the warning messages 😛

Is there a way I can disable these messages? I tried just switching PlaneGeometry to PlaneBufferGeometry but that threw other errors in my code that I don’t want to deal with right now. Also I’m currently not worried about memory, currently I just need to have a working (stable of unstable) version of my project working in a couple days to present to my boss.

Author: Fantashit

3 thoughts on “Disable debug messages?

  1. @crabmusket personally I think that message should always be displayed. It’s very useful for anyone else looking at your app to know just by looking at the console that is was built with three.js, and the version. Consider it a tiny bit of advertising you have to put up with for using this free library 😉

    Regarding the original issue, I don’t think that any console.info messages get displayed anymore anyway, so perhaps this issue can be closed? @mrdoob @Mugen87

  2. I’m not going to continue this discussion because I think consensus has been reached, but I will just say:

    It’s very useful for anyone else looking at your app to know just by looking at the console that is was built with three.js, and the version.

    I use Vue, Moment, jQuery, Bootstrap, and none of them think it’s necessary to log mandatory messages to the console.

Comments are closed.