mrdoob / three.js

JavaScript 3D Library.
https://threejs.org/
MIT License
102.77k stars 35.38k forks source link

Remove console.log messages on renderer initialization #18339

Closed ludwig801 closed 4 years ago

ludwig801 commented 4 years ago
Description of the problem

Any initialization of WebGLRenderer and CSS3DRenderer should not log anything to the console or, if anything, messages such as "THREE.WebGLRenderer " could be logged as verbose (with console.debug, for example).

Such logging may have to be disabled in production environments and, as such, such control should be given.

Three.js version
Browser
Mugen87 commented 4 years ago

On which messages are you referring? The REVISION message was removed some time ago. Official examples like the following do not log anything to the console:

https://threejs.org/examples/webgl_animation_skinning_blending https://threejs.org/examples/css3d_periodictable

mrdoob commented 4 years ago

@ludwig801 do you happen to have the Three.js DevTools installed?

ludwig801 commented 4 years ago

@mrdoob Yeah I do. Darn it, never mind, I'll close this topic right away.