Hersir Posted April 4, 2017 Share Posted April 4, 2017 Hi, is ti possible to completely remove debug info for release version? I use production Babylon file but still get logs in console. Quote Link to comment Share on other sites More sharing options...
davrous Posted April 4, 2017 Share Posted April 4, 2017 Hello, You're talking about the starting message being logged at the beginning? It's intentionnaly left as is to let us quickly identify some sites are using Babylon.js to reference them as well as the engine version being used. You can easily remove it if you want to by building your own custom version removing this kind of logs. David Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 4, 2017 Share Posted April 4, 2017 Except the "trademark" we left intentionally, do you have any other message? Quote Link to comment Share on other sites More sharing options...
Hersir Posted April 5, 2017 Author Share Posted April 5, 2017 I saw just it as I turned off it for scene loader. And is it not owerhead to create that big string in parser if no logging is needed? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 5, 2017 Share Posted April 5, 2017 Who knows if no logging is needed Quote Link to comment Share on other sites More sharing options...
Hersir Posted April 5, 2017 Author Share Posted April 5, 2017 probably would be noci to wrap debug/inspect code in some sort condicional compilation like uglify had https://github.com/gruntjs/grunt-contrib-uglify/blob/master/README.md Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 5, 2017 Share Posted April 5, 2017 But to be fair, I'm not sure I understand which strings you are talking about Quote Link to comment Share on other sites More sharing options...
Hersir Posted April 5, 2017 Author Share Posted April 5, 2017 I was thinking about log strings here https://github.com/BabylonJS/Babylon.js/blob/master/src/Loading/Plugins/babylon.babylonFileLoader.ts Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 5, 2017 Share Posted April 5, 2017 You need them to understand if something is not loading right? Don;t you want them for size reason? Quote Link to comment Share on other sites More sharing options...
Hersir Posted April 6, 2017 Author Share Posted April 6, 2017 No size is ok I think, more for memory usage but I think it should be minor gain Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 6, 2017 Share Posted April 6, 2017 Clearly Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.