{ "id": "107246", "key": "AC-2017", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "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": "2013-04-08T18:27:19.000+0000", "created": "2013-01-02T10:01:08.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:40:58.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "This code:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : \"#FFF\"\r\n});\r\n\r\nvar obj = {\r\n\ta : 1,\r\n\tb : 2\r\n};\r\nTi.API.info(\"Got:\", obj);\r\n\r\nwin.open();\r\n{code}\r\nwhen run with \r\n\r\ntitanium build --platform=ios -T simulator -Y iphone\r\n\r\nresults in\r\n\r\n{code} \r\n[INFO] Got: {\r\n{code}\r\n\r\nwhereas run with\r\n\r\ntitanium build --platform=ios -T simulator -Y iphone --log-level=debug\r\n\r\nit returns\r\n\r\n{code}\r\n[INFO] Got: {\r\n[DEBUG] a = 1;\r\n[DEBUG] b = 2;\r\n[DEBUG] } \r\n{code}\r\n\r\nIt looks wrong to me: all lines should be in log level INFO\r\nThe same holds true in TiStudio.\r\n\r\nThis makes logging object painful (and I don't want to run everything in debug mode).", "attachment": [], "flagged": false, "summary": "Multiline Ti.API.info() call logs first line with INFO and subsequent with DEBUG", "creator": { "name": "tgo", "key": "tgo", "displayName": "Thierry Godfroid", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "tgo", "key": "tgo", "displayName": "Thierry Godfroid", "active": true, "timeZone": "Europe/Berlin" }, "environment": "ios 10.7.5, Xcode 4.5.1, TI SDK 3.0.0.GA\r\nusing CLI (CLI version 3.0.22, Titanium SDK version 3.0.0.GA)\r\nbut the same output (described below) applies to TiStudio too.", "comment": { "comments": [ { "id": "236449", "author": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "body": "What version of Titanium Studio are you using?", "updateAuthor": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-29T18:03:53.000+0000", "updated": "2013-01-29T18:03:53.000+0000" }, { "id": "236479", "author": { "name": "tgo", "key": "tgo", "displayName": "Thierry Godfroid", "active": true, "timeZone": "Europe/Berlin" }, "body": "As I said in the entry this shows with the CLI (see version above). That being said, it also show in Studio and version was 3.0.1. But I am mainly using CLI and it's bothersome. Thanks.", "updateAuthor": { "name": "tgo", "key": "tgo", "displayName": "Thierry Godfroid", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-01-29T19:40:47.000+0000", "updated": "2013-01-29T19:40:47.000+0000" }, { "id": "246453", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cannot reproduce with:\r\n- Ti Studio 3.0.2.201302191606\r\n- Ti SDK 3.1 CI\r\n- CLI 3.0.24\r\n\r\n*titanium build --platform=ios -T simulator -Y iphone*\r\n{code}\r\n[INFO] Got: {\r\n[INFO] a = 1;\r\n[INFO] b = 2;\r\n[INFO] }\r\n{code}\r\n\r\n*titanium build --platform=ios -T simulator -Y iphone --log-level=debug*\r\n{code}\r\n[INFO] Got: {\r\n[INFO] a = 1;\r\n[INFO] b = 2;\r\n[INFO] }\r\n{code}", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-08T18:27:19.000+0000", "updated": "2013-04-08T18:27:19.000+0000" }, { "id": "246483", "author": { "name": "tgo", "key": "tgo", "displayName": "Thierry Godfroid", "active": true, "timeZone": "Europe/Berlin" }, "body": "Confirmed. I didn't upgrade to 3.0.2 because not really needed but I just did and it does solve the issue. Only tested in CLI.\nThanks", "updateAuthor": { "name": "tgo", "key": "tgo", "displayName": "Thierry Godfroid", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-04-08T20:17:47.000+0000", "updated": "2013-04-08T20:17:47.000+0000" }, { "id": "281093", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Closed because of Thierry's last comment :D", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-25T06:17:59.000+0000", "updated": "2013-11-25T06:17:59.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }