diff --git a/common/Resources/ti.internal/extensions/js/console.js b/common/Resources/ti.internal/extensions/js/console.js index 5563285ead8..ed5b085a9f9 100644 --- a/common/Resources/ti.internal/extensions/js/console.js +++ b/common/Resources/ti.internal/extensions/js/console.js @@ -75,6 +75,11 @@ class Console { } _writeToConsole(level, string) { + // filter out console logs in production apps + if (Ti.App.deployType === 'production') { + return; + } + if (this._groupIndent.length !== 0) { if (string.includes('\n')) { string = string.replace(/\n/g, `\n${this._groupIndent}`);