[TIMOB-14882] CLI: ti build for log level option not working properly
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2013-10-19T01:38:11.000+0000 |
| Affected Version/s | Release 3.1.2 |
| Fix Version/s | 2013 Sprint 21, 2013 Sprint 21 Core, Release 3.2.0 |
| Components | CLI |
| Labels | androidbuild, qe-3.1.2, qe-closed-3.2.0 |
| Reporter | Priya Agarwal |
| Assignee | Chris Barber |
| Created | 2013-08-14T13:06:16.000+0000 |
| Updated | 2013-11-11T21:39:54.000+0000 |
Description
ti build for option log level not working properly.
If command run as ti build --log-level warn.
Expected Result:
The project should be built successfully and logging level should show [WARN] if any warnings occur.
Actual Result:
It shows all the logs(info,debug,warn etc).
I was unable to reproduce this using the latest 3.2 code. It's possible this was a valid issue at some point and may have been fixed with the CLI refactor.
Issue is reproducible if building for android: ti build -p android --log-level warn In this case all log levels are shown. If building for iOS (ti build -p ios --log-level warn) only the 'warn' log level are shown. Behavior reproduced both using CLI 3.1.2.GA and 3.2.0 from master branch: Titanium SDK 3.1.3.v20130829174830 Alloy 1.2.1.GA Appcelerator Studio 3.1.3.201308252005 CLI 3.1.2.GA and 3.2.0 Node 0.10.13
PR: https://github.com/appcelerator/titanium_mobile/pull/4781
CLI 3.2.0 (git://github.com/appcelerator/titanium.git) Alloy 1.3.0 Titanium SDK 3.2.0.v20131110134044