{ "id": "104181", "key": "TIMOB-11618", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-10-31T18:29:44.000+0000", "created": "2012-10-31T00:10:17.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "parity", "qe-and100112" ], "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": "22426", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "104176", "key": "TIMOB-11615", "fields": { "summary": "iOS: Ti.API.log: function calls with one arg (log level) do not print as the correct log level", "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": "Low", "id": "4" }, "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-17T18:57:51.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": "Ti.API.log console logging calls with one arg (log level) do not print as the correct log level. They all default to [INFO] instead.\r\n\r\nThis does not occur in MobileWeb. This is a parity issue.\r\n\r\nThis is also an inconsistency within the Android platform because log calls with two args work as expected.\r\n\r\nNotice the two edge-cases as well with Ti.API.log() with no arg printing as [undefined] when it would normally be expected to be the null string, and Ti.API.log('log') with a freeform log type does not contain brackets when it normally would (see expected results for both).\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run code:\r\n\r\n{code}\r\nTi.API.log();\r\nTi.API.log('trace');\r\nTi.API.log('debug');\r\nTi.API.log('info');\r\nTi.API.log('warn');\r\nTi.API.log('error');\r\nTi.API.log('log');\r\n{code}\r\n\r\nActual Result:\r\n\r\n{code}\r\n[INFO][TiAPI ( 327)] [undefined] \r\n[INFO][TiAPI ( 327)] trace\r\n[INFO][TiAPI ( 327)] debug\r\n[INFO][TiAPI ( 327)] info\r\n[INFO][TiAPI ( 327)] warn\r\n[INFO][TiAPI ( 327)] error\r\n[INFO][TiAPI ( 327)] log\r\n{code}\r\n\r\nExpected Result:\r\n\r\n{code}\r\n[INFO][TiAPI ( 327)]\r\n[TRACE][TiAPI ( 327)] trace\r\n[DEBUG][TiAPI ( 327)] debug\r\n[INFO][TiAPI ( 327)] info\r\n[WARN][TiAPI ( 327)] warn\r\n[ERROR][TiAPI ( 327)] error\r\n[INFO][TiAPI ( 327)] [log]\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Ti.API.log: function calls with one arg (log level) do not print as the correct log level, and have some format problems", "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\nAndroid Devices Tested: Android Emulator Google APIs 2.2", "comment": { "comments": [ { "id": "225630", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This occurs in iOS as well in TIMOB-11615 (with slight variations).", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-31T00:12:29.000+0000", "updated": "2012-10-31T00:23:44.000+0000" }, { "id": "225700", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Duplicate of TIMOB-11615.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-31T18:15:48.000+0000", "updated": "2012-10-31T18:15:48.000+0000" }, { "id": "225703", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Need to revisit [undefined] log message edge case within this ticket.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-31T18:24:22.000+0000", "updated": "2012-10-31T18:24:22.000+0000" }, { "id": "413611", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-17T18:57:51.000+0000", "updated": "2017-03-17T18:57:51.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }