{ "id": "172819", "key": "TIMOB-26695", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "20432", "name": "Release 8.0.1", "archived": false, "released": true, "releaseDate": "2019-05-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-04-11T12:33:56.000+0000", "created": "2019-01-07T13:02:56.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2019-04-11T12:33:56.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "This is a minor one, but I find it important to mention: As our app grows (70+ controllers), we are starting to experience an issue related to debug logs. When calling {{import}} (transpiled down to require()}}, the Node.js path-algorithm (implemented by [~cwilliams] 2 years ago) steps in and returns an instance of the exported object. So good so far, but in our case, this produces hundrets of log messages, e.g.:\r\n{code}\r\n[DEBUG] Loading: /Users/hans/Library/Developer/CoreSimulator/Devices/884D0F2B-46F2-41D5-AA78-C26BC42BF348/data/Containers/Bundle/Application/8E865D94-2666-4345-B0C9-EBF806D8BC39/SwaggyApp.app/alloy/widgets/node_modules/app-utils, Resource: alloy/widgets/node_modules/app-utils\r\n[DEBUG] Loading: /Users/hans/Library/Developer/CoreSimulator/Devices/884D0F2B-46F2-41D5-AA78-C26BC42BF348/data/Containers/Bundle/Application/8E865D94-2666-4345-B0C9-EBF806D8BC39/SwaggyApp.app/alloy/widgets/node_modules/app-utils.js, Resource: alloy/widgets/node_modules/app-utils_js\r\n[DEBUG] Loading: /Users/hans/Library/Developer/CoreSimulator/Devices/884D0F2B-46F2-41D5-AA78-C26BC42BF348/data/Containers/Bundle/Application/8E865D94-2666-4345-B0C9-EBF806D8BC39/SwaggyApp.app/alloy/widgets/node_modules/app-utils.json, Resource: alloy/widgets/node_modules/app-utils_json\r\n[DEBUG] Loading: /Users/hans/Library/Developer/CoreSimulator/Devices/884D0F2B-46F2-41D5-AA78-C26BC42BF348/data/Containers/Bundle/Application/8E865D94-2666-4345-B0C9-EBF806D8BC39/SwaggyApp.app/alloy/widgets/node_modules/app-utils/package.json, Resource: alloy/widgets/node_modules/app-utils/package_json\r\n[DEBUG] Loading: /Users/hans/Library/Developer/CoreSimulator/Devices/884D0F2B-46F2-41D5-AA78-C26BC42BF348/data/Containers/Bundle/Application/8E865D94-2666-4345-B0C9-EBF806D8BC39/SwaggyApp.app/alloy/widgets/node_modules/app-utils/index.js, Resource: alloy/widgets/node_modules/app-utils/index_js\r\n[DEBUG] Loading: /Users/hans/Library/Developer/CoreSimulator/Devices/884D0F2B-46F2-41D5-AA78-C26BC42BF348/data/Containers/Bundle/Application/8E865D94-2666-4345-B0C9-EBF806D8BC39/SwaggyApp.app/alloy/widgets/node_modules/app-utils/index.json, Resource: alloy/widgets/node_modules/app-utils/index_json\r\n[DEBUG] Loading: /Users/hans/Library/Developer/CoreSimulator/Devices/884D0F2B-46F2-41D5-AA78-C26BC42BF348/data/Containers/Bundle/Application/8E865D94-2666-4345-B0C9-EBF806D8BC39/SwaggyApp.app/alloy/node_modules/app-utils, Resource: alloy/node_modules/app-utils\r\n[DEBUG] Loading: /Users/hans/Library/Developer/CoreSimulator/Devices/884D0F2B-46F2-41D5-AA78-C26BC42BF348/data/Containers/Bundle/Application/8E865D94-2666-4345-B0C9-EBF806D8BC39/SwaggyApp.app/alloy/node_modules/app-utils.js, Resource: alloy/node_modules/app-utils_js\r\n[DEBUG] Loading: /Users/hans/Library/Developer/CoreSimulator/Devices/884D0F2B-46F2-41D5-AA78-C26BC42BF348/data/Containers/Bundle/Application/8E865D94-2666-4345-B0C9-EBF806D8BC39/SwaggyApp.app/alloy/node_modules/app-utils.json, Resource: alloy/node_modules/app-utils_json\r\n[DEBUG] Loading: /Users/hans/Library/Developer/CoreSimulator/Devices/884D0F2B-46F2-41D5-AA78-C26BC42BF348/data/Containers/Bundle/Application/8E865D94-2666-4345-B0C9-EBF806D8BC39/SwaggyApp.app/alloy/node_modules/app-utils/package.json, Resource: alloy/node_modules/app-utils/package_json\r\n[DEBUG] Loading: /Users/hans/Library/Developer/CoreSimulator/Devices/884D0F2B-46F2-41D5-AA78-C26BC42BF348/data/Containers/Bundle/Application/8E865D94-2666-4345-B0C9-EBF806D8BC39/SwaggyApp.app/alloy/node_modules/app-utils/index.js, Resource: alloy/node_modules/app-utils/index_js\r\n[DEBUG] Loading: /Users/hans/Library/Developer/CoreSimulator/Devices/884D0F2B-46F2-41D5-AA78-C26BC42BF348/data/Containers/Bundle/Application/8E865D94-2666-4345-B0C9-EBF806D8BC39/SwaggyApp.app/alloy/node_modules/app-utils/index.json, Resource: alloy/node_modules/app-utils/index_json\r\n[DEBUG] Loading: /Users/hans/Library/Developer/CoreSimulator/Devices/884D0F2B-46F2-41D5-AA78-C26BC42BF348/data/Containers/Bundle/Application/8E865D94-2666-4345-B0C9-EBF806D8BC39/SwaggyApp.app/node_modules/app-utils, Resource: node_modules/app-utils\r\n[DEBUG] Loading: /Users/hans/Library/Developer/CoreSimulator/Devices/884D0F2B-46F2-41D5-AA78-C26BC42BF348/data/Containers/Bundle/Application/8E865D94-2666-4345-B0C9-EBF806D8BC39/SwaggyApp.app/node_modules/app-utils.js, Resource: node_modules/app-utils_js\r\n[DEBUG] Loading: /Users/hans/Library/Developer/CoreSimulator/Devices/884D0F2B-46F2-41D5-AA78-C26BC42BF348/data/Containers/Bundle/Application/8E865D94-2666-4345-B0C9-EBF806D8BC39/SwaggyApp.app/node_modules/app-utils.json, Resource: node_modules/app-utils_json\r\n[DEBUG] Loading: /Users/hans/Library/Developer/CoreSimulator/Devices/884D0F2B-46F2-41D5-AA78-C26BC42BF348/data/Containers/Bundle/Application/8E865D94-2666-4345-B0C9-EBF806D8BC39/SwaggyApp.app/node_modules/app-utils/package.json, Resource: node_modules/app-utils/package_json\r\n[DEBUG] Loading: /Users/hans/Library/Developer/CoreSimulator/Devices/884D0F2B-46F2-41D5-AA78-C26BC42BF348/data/Containers/Bundle/Application/8E865D94-2666-4345-B0C9-EBF806D8BC39/SwaggyApp.app/node_modules/app-utils/index.js, Resource: node_modules/app-utils/index_js\r\n[DEBUG] Loading: /Users/hans/Library/Developer/CoreSimulator/Devices/884D0F2B-46F2-41D5-AA78-C26BC42BF348/data/Containers/Bundle/Application/8E865D94-2666-4345-B0C9-EBF806D8BC39/SwaggyApp.app/node_modules/app-utils/index.json, Resource: node_modules/app-utils/index_json\r\n[DEBUG] Loading: /Users/hans/Library/Developer/CoreSimulator/Devices/884D0F2B-46F2-41D5-AA78-C26BC42BF348/data/Containers/Bundle/Application/8E865D94-2666-4345-B0C9-EBF806D8BC39/SwaggyApp.app/app-utils, Resource: app-utils\r\n{code}\r\nNote: The above 19 logs are for *one* file, think about a complex view with 10+ controllers, common-js modules and external node_modules. \r\n\r\nSo long story short: I'd like to remove this log for the compiled / packaged version of the SDK. Since it can still be useful to trace imports in the core-development of Titanium (where it will still be enabled), this should not break any development flows and make the console output more structured again - especially when using debug logs á lá JavaScript. ", "attachment": [], "flagged": false, "summary": "iOS: Do not show Node.js path-tracking in console", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "445030", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/10539", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-01-07T13:06:43.000+0000", "updated": "2019-01-07T13:06:43.000+0000" }, { "id": "446525", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Kindly use the PR: https://github.com/appcelerator/titanium_mobile/pull/10572", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-03-04T23:16:50.000+0000", "updated": "2019-03-04T23:16:50.000+0000" }, { "id": "446526", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed. Waiting on Jenkins build.", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-03-05T00:00:42.000+0000", "updated": "2019-03-05T00:00:42.000+0000" }, { "id": "447121", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master, cherry-picked to 8_0_X", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-03-25T15:57:15.000+0000", "updated": "2019-03-25T15:57:15.000+0000" }, { "id": "447617", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket*, improvement verified in SDK Version {{8.1.0.v20190410132858}} and SDK Version {{8.0.1.v20190408125832}}\r\n\r\nTest and other information can be found at: \r\nhttps://github.com/appcelerator/titanium_mobile/pull/10572", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-04-11T12:33:51.000+0000", "updated": "2019-04-11T12:33:51.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }