Skip to content

Make production build more quiet? #12816

Answered by jquick-axway
m1ga asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, this was intentional for production builds. Just like how the native logging functions still work for release builds.

If you want to disable all logging functions for production/release builds, then add a new script file to your project named DisableLogging.bootstrap.js with the below code. This will replace all logging functions to make them no-op. Note that files ending with *.bootstrap.js will be loaded by Titanium before the app.js or alloy.js (it's an undocumented feature). Also note that this will not block the "Powered by Titanium" log message since bootstrap scripts are loaded afterwards, but this was the intent on our end.

// Disable logging for release/production builds.
if (

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@m1ga
Comment options

m1ga May 17, 2021
Collaborator Author

@jquick-axway
Comment options

Answer selected by m1ga
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants