{ "id": "108451", "key": "TIMOB-12403", "fields": { "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true }, "parent": { "id": "89173", "key": "TIMOB-8424", "fields": { "summary": "Ti API: Define cross platform logging API", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2016-08-18T20:31:18.000+0000", "created": "2013-01-23T20:42:06.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "qe-sdk3.0.2", "sdk-console" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T21:58:55.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": "DEBUG messages print as [debug] in Studio and [DEBUG] in Xcode. Log files attached.\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run KitchenSink in iOS Simulator or Device.\r\n2. Capture console log.\r\n3. Run transport.py on KitchenSink and run in iOS Simulator or Device using Xcode.\r\n4. Capture console log.\r\n\r\nActual Result:\r\n\r\nDEBUG messages print as [debug] in Studio.\r\n\r\nExpected Result:\r\n\r\nDEBUG messages print as [DEBUG] in Studio.", "attachment": [ { "id": "35085", "filename": "studio.rtf", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-23T20:42:06.000+0000", "size": 3242, "mimeType": "text/rtf" }, { "id": "35086", "filename": "xcode.rtf", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-23T20:42:06.000+0000", "size": 3455, "mimeType": "text/rtf" } ], "flagged": false, "summary": "SDK Console: log messages are incorrect capitalization", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 3.0.1, 3.0.2.X, 3.1.0.201301211741\r\nTitanium SDK: 3.0.0.GA\r\nTitanium CLI: 3.0.23\r\nTitanium Project: KitchenSink", "comment": { "comments": [ { "id": "235622", "author": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Dustin - I don't think we modify or insert anything to the output we received in Studio, so suspect this is a CLI problem. Could you run the command from command line using CLI and see if it shows \"[error]\" in the log?\r\n", "updateAuthor": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-23T23:15:42.000+0000", "updated": "2013-01-23T23:15:42.000+0000" }, { "id": "235645", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Only occurs on debug on ios device.\n\nSample Code:\n\n{code}\nalert('SESSION ID: ' + Ti.App.sessionId); \nTi.API.error('SESSION ID: ' + Ti.App.sessionId); \nTi.API.error('ERROR => Ti.API.error'); \nTi.API.log('ERROR', 'ERROR => Ti.API.log'); \nTi.API.warn('WARN => Ti.API.warn'); \nTi.API.log('WARN', 'WARN => Ti.API.log'); \nTi.API.info('INFO => Ti.API.info'); \nTi.API.log('INFO', 'INFO => Ti.API.log'); \nTi.API.debug('DEBUG => Ti.API.debug'); \nTi.API.log('DEBUG', 'DEBUG => Ti.API.log'); \nTi.API.trace('TRACE => Ti.API.trace'); \nTi.API.log('TRACE', 'TRACE => Ti.API.log'); \nTi.API.log('FREEFORM', 'FREEFORM => Ti.API.log');\n{code}\n\nConsole Output:\n\n{code}\n[DEBUG] Analytics is enabled = YES\n[DEBUG] Loading: /var/mobile/Applications/74EC68C4-08DE-422C-B1B1-55BD1D06DD9C/MyProject.app/app.js, Resource: app_js\n[warn] WARN => Ti.API.warn\n[WARN] WARN => Ti.API.log\n[INFO] INFO => Ti.API.info\n[INFO] INFO => Ti.API.log\n[debug] DEBUG => Ti.API.debug\n[DEBUG] DEBUG => Ti.API.log\n[trace] TRACE => Ti.API.trace\n[TRACE] TRACE => Ti.API.log\n[FREEFORM] FREEFORM => Ti.API.log\n[DEBUG] Application booted in 14870.001972 ms\n[error] SESSION ID: 815B3A6C-6556-4CCE-8A7A-98BDB39D6A4E\n[error] ERROR => Ti.API.error\n[ERROR] ERROR => Ti.API.log\n{code}", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-23T23:59:35.000+0000", "updated": "2013-01-23T23:59:35.000+0000" }, { "id": "235655", "author": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This looks to be a SDK issue as Ti.API.warn(...) and Ti.API.debug(...) are generating logs with [warn] and [debug] inserted, instead of the ones with all capital letters.\r\n", "updateAuthor": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-24T00:24:30.000+0000", "updated": "2013-01-24T00:24:30.000+0000" }, { "id": "393536", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Verified works as expected with Titanium SDK 6.\r\n\r\n{code}\r\n[ERROR] SESSION ID: 5944F5FB-B402-41BD-AB6E-1512155BCA45\r\n[ERROR] ERROR => Ti.API.error\r\n[ERROR] ERROR => Ti.API.log\r\n[WARN] WARN => Ti.API.warn\r\n[WARN] WARN => Ti.API.log\r\n[INFO] INFO => Ti.API.info\r\n[INFO] INFO => Ti.API.log\r\n[DEBUG] DEBUG => Ti.API.debug\r\n[DEBUG] DEBUG => Ti.API.log\r\n[TRACE] TRACE => Ti.API.trace\r\n[TRACE] TRACE => Ti.API.log\r\n[TRACE] [FREEFORM] FREEFORM => Ti.API.log\r\n{code}", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-08-18T20:31:18.000+0000", "updated": "2016-08-18T20:31:18.000+0000" }, { "id": "415815", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced and with reference to the previous comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T21:58:55.000+0000", "updated": "2017-03-24T21:58:55.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }