{ "id": "104175", "key": "TIMOB-11614", "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": null, "resolutiondate": null, "created": "2012-10-30T23:44:24.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "cb-tooling", "parity", "qe-ios100112" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "52557", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "114679", "key": "TIMOB-13941", "fields": { "summary": "iOS: Titanium console.log should not output instead of undefined", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-02-28T20:04:17.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Console logging functions with no args print the message as 'null'.\r\n\r\nThis occurs in all iOS logging functions (Ti.API and console (js logging object)).\r\nThis does not occur in MobileWeb or Android.\r\n\r\nNormally a print function with no argument prints as a null string (i.e., blank output).\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run code:\r\n\r\n{code}\r\n/* console */\r\n\r\nconsole.log();\r\nconsole.debug();\r\nconsole.info();\r\nconsole.warn();\r\nconsole.error();\r\n\r\n/* Ti.API */\r\n\r\nTi.API.trace();\r\nTi.API.debug();\r\nTi.API.info();\r\nTi.API.warn();\r\nTi.API.error();\r\nTi.API.log();\r\n\r\n/* Ti.iOS.API */\r\n\r\nTi.API.timestamp();\r\n{code}\r\n\r\nActual Result:\r\n\r\n{code}\r\n[INFO] (null)\r\n[DEBUG] (null)\r\n[INFO] (null)\r\n[WARN] (null)\r\n[ERROR] (null)\r\n[TRACE] (null)\r\n[DEBUG] (null)\r\n[INFO] (null)\r\n[WARN] (null)\r\n[ERROR] (null)\r\n[INFO] (null)\r\n[TIMESTAMP] 373333351.000958 (null)\r\n{code}\r\n\r\nExpected Result:\r\n\r\nBlank message output (i.e., the null string) as in the other platforms and most standard print functions.", "attachment": [], "flagged": false, "summary": "iOS: console logging functions with no args print as null", "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 SDK: 2.1.3.GA, 3.0.0.v20121030114615\r\nTitanium Studio: 3.0.0.201210291448\r\n\r\nTitanium CLI Version: 3.0.11\r\nTitanium CLI Enabled: false\r\n\r\nHost OS: Mac OS X Mountain Lion 10.8.2\r\niOS Devices Tested: iPhone Simulator 6.0", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }