Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14755] CLI: 'titanium project' outputs debug messages when --output json

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-10-28T16:33:12.000+0000
Affected Version/sRelease 3.1.1
Fix Version/s2013 Sprint 22, 2013 Sprint 22 Core, Release 3.2.0
ComponentsCLI
Labelsqe-closed-3.2.0
ReporterChris Barber
AssigneeChris Barber
Created2013-08-02T21:28:10.000+0000
Updated2013-11-20T02:42:41.000+0000

Description

From a project dir, run "ti project -o json --log-level trace" and you'll get:
[DEBUG] No project level plugins to load
[DEBUG] Loaded plugin hooks:
[DEBUG] /Users/chris/Library/Application Support/Titanium/mobilesdk/osx/3.1.1.GA/cli/hooks/plugins.js
{
	"deployment-targets": {
		"android": true,
		"blackberry": true,
		"ipad": true,
		"iphone": true,
		"mobileweb": true,
		"tizen": true
	},
	"sdk-version": "3.1.1.GA",
	"id": "com.appcelerator.testapp2",
	"name": "testapp2",
	"version": "1.0",
	"publisher": "not specified",
	"url": "http://www.google.com/",
	"description": "not specified",
	"copyright": "not specified",
	"icon": "appicon.png",
	"analytics": true,
	"guid": "0cf6aa04-a863-4a4c-8262-e8a04bc124f2"
}
If you run "ti project -o json --log-level info", it works as expected. Just need to suppress all log output when outputting as json.

Comments

  1. Chris Barber 2013-10-26

    Pull request: https://github.com/appcelerator/titanium_mobile/pull/4861
  2. Olga Romero 2013-11-20

        ti project -o json --log-level trace
       {
       	"deployment-targets": {
       		"android": true,
       		"blackberry": true,
       		"ipad": true,
       		"iphone": true,
       		"mobileweb": true,
       		"tizen": false
       	},
       	"sdk-version": "3.2.0.v20131118142443",
       	"id": "com.appc.test1",
       	"name": "test1",
       	"version": "1.0",
       	"publisher": "oromero",
       	"url": "http://",
       	"description": "not specified",
       	"copyright": "2013 by oromero",
       	"icon": "appicon.png",
       	"analytics": true,
       	"guid": "7545cead-9d9f-4487-a320-9c72261d24fd"
       }
       
       
        ti project -o json --log-level info
       {
       	"deployment-targets": {
       		"android": true,
       		"blackberry": true,
       		"ipad": true,
       		"iphone": true,
       		"mobileweb": true,
       		"tizen": false
       	},
       	"sdk-version": "3.2.0.v20131118142443",
       	"id": "com.appc.test1",
       	"name": "test1",
       	"version": "1.0",
       	"publisher": "oromero",
       	"url": "http://",
       	"description": "not specified",
       	"copyright": "2013 by oromero",
       	"icon": "appicon.png",
       	"analytics": true,
       	"guid": "7545cead-9d9f-4487-a320-9c72261d24fd"
       }
       
       

JSON Source