Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11619] Android: Ti.API: console logging calls with no arg do not print at all

GitHub Issuen/a
TypeSub-task
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 2.1.3, Release 3.0.0
Fix Version/sn/a
ComponentsAndroid
Labelscb-tooling, parity, qe-and100112
ReporterDustin Hyde
AssigneeUnknown
Created2012-10-31T00:30:12.000+0000
Updated2018-02-28T20:03:56.000+0000

Description

Android: Ti.API: console logging calls with no arg do not print at all. This does not occur in MobileWeb or iOS. This is a parity issue. This also is an inconsistency within the Android platform, as console object logging functions and Ti.API.log functions with one arg print to console correctly. Steps to Reproduce: 1. Run code:
/* console */

Ti.API.info('console object output:');

console.log();
console.debug();
console.info();
console.warn();
console.error();

/* Ti.API */

Ti.API.info('Ti.API output:');

Ti.API.trace();
Ti.API.debug();
Ti.API.info();
Ti.API.warn();
Ti.API.error();
Actual Result:
[INFO][TiAPI   (  414)]  console object output:
[INFO][TiAPI   (  414)]  
[INFO][TiAPI   (  414)]  
[WARN][TiAPI   (  414)]  
[ERROR][TiAPI   (  414)]  
[INFO][TiAPI   (  414)]  Ti.API output:
Notice the lack of output after Ti.API. Expected Result: All Ti.API calls should log to console.

Comments

  1. Chris Barber 2016-08-24

    Confirmed with Titanium SDK master (6.1.0).

JSON Source