{ "id": "63794", "key": "TIMOB-3162", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13207", "name": "Sprint 2012-07", "archived": true, "released": true, "releaseDate": "2012-04-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-03T18:51:30.000+0000", "created": "2011-04-15T03:38:25.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "core", "parity", "qe-closed-3.2.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "chaseculpepper22", "key": "chaseculpepper22", "displayName": "Chase Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-01-06T11:27:21.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

I used Ti.API.log with one argument in an external JS file\r\nwrongly. It works on iPhone and a message is printed as info log.\r\nBut on Android, it fails without error message and scripts after\r\nthe log line are not executed.

{html}", "attachment": [ { "id": "24315", "filename": "log single argument android runtime error.png", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-23T15:43:45.000+0000", "size": 71529, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Ti.API.log doesn't work with one argument only", "creator": { "name": "studiohitori", "key": "studiohitori", "displayName": "StudioHitori", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "studiohitori", "key": "studiohitori", "displayName": "StudioHitori", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "173936", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Bug still valid, verified on:\r\nSDK: 1.8.0.1.v20111123144258\r\nStudio: 1.0.7.201111221758\r\nOS: OS X Lion\r\nDevices: all supported Android devices and emulators\r\n\r\nComments:\r\nWhen log is called with one argument on iOS platforms, the error type defaults to INFO, and the message prints correctly.\r\nOn Android platforms, a runtime error is thrown (screenshot attached).\r\nThe documentation may need to be updated as well, as log should take two arguments (severity, message).", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-23T15:43:19.000+0000", "updated": "2011-11-23T15:43:19.000+0000" }, { "id": "191724", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I could not reproduce this runtime error in 1.8.0.1 or 2.0.2.\r\n\r\nThe message was correctly logged to the console as undefined when using code:\r\n\r\n{code}\r\nTi.API.log('LOG WITH ONE ARG');\r\n{code}\r\n\r\nConsole:\r\n\r\n{code}\r\n[INFO][TiAPI ( 448)] undefined\r\n{code}\r\n\r\nSDK: 1.8.0.1, 2.0.2.v20120418121806\r\nRuntime: V8\r\nStudio: 2.0.2.201204171552\r\nOS: Snow Leopard\r\nDevices Tested: Android Emulator 2.3.3", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-18T16:55:17.000+0000", "updated": "2012-04-18T16:55:17.000+0000" }, { "id": "286752", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Appc-Studio: 3.2.0.201312191455\r\nSdk:3.2.0.GA\r\nacs:1.0.11\r\nalloy:1.3.1-beta\r\nnpm:1.3.2\r\ntitanium:3.2.0\r\ntitanium-code-processor:1.1.0\r\nOsx: Maverick 10.9\r\nXcode: xCode 5.0.2\r\nDevice: HTC Desire(v4.0.3) and iPHONE Simulator(v7.0.3)\r\n\r\nTi.API.log works for both one and more than one argument.\r\nVerified and closed", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-06T11:27:21.000+0000", "updated": "2014-01-06T11:27:21.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }