Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12809] CLI: iOS log output gets munged

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-03-05T00:35:53.000+0000
Affected Version/sRelease 3.0.2
Fix Version/sRelease 3.1.0, 2013 Sprint 05 JS, 2013 Sprint 05
ComponentsCLI
Labelscli-review, qe-port
ReporterChris Barber
AssigneeChris Barber
Created2013-02-21T18:12:34.000+0000
Updated2013-03-13T18:24:44.000+0000

Description

If an app in the iOS Simulator throws an error that contains the word "backtrace", it will munge the output and the remaining lines are printed as "debug" instead of "error".

Comments

  1. Chris Barber 2013-02-21

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3896
  2. Olga Romero 2013-03-07

    Run this code from TIMOB-12719 to verify output.
       
       var win = Ti.UI.createWindow({
           backgroundColor : 'blue'
       });
         
       var button = Ti.UI.createButton({
           title : 'click',
           top : '40%',
           bottom : '40%',
           left : '30%',
           right : '30%'
       });
         
       button.addEventListener('click', function() {
           console.log('console.log()');
           console.log(['arg0', 'arg1', 'arg2']);
         
           console.debug('console.debug()');
           console.debug(['arg0', 'arg1', 'arg2']);
         
           console.info('console.info()');
           console.info(['arg0', 'arg1', 'arg2']);
         
           console.warn('console.warn()');
           console.warn(['arg0', 'arg1', 'arg2']);
         
           console.error('console.error()');
           console.error(['arg0', 'arg1', 'arg2']);
         
           Ti.API.trace('Ti.API.trace()');
           Ti.API.trace(['arg0', 'arg1', 'arg2']);
         
           Ti.API.debug('Ti.API.debug([])');
           Ti.API.debug(['arg0', 'arg1', 'arg2']);
         
           Ti.API.info('Ti.API.info([])');
           Ti.API.info(['arg0', 'arg1', 'arg2']);
         
           Ti.API.warn('Ti.API.warn([])');
           Ti.API.warn(['arg0', 'arg1', 'arg2']);
         
           Ti.API.error('Ti.API.error([])');
           Ti.API.error(['arg0', 'arg1', 'arg2']);
         
           Ti.API.log('TRACE', 'Ti.API.log(TRACE)');
           Ti.API.log('TRACE', ['arg0', 'arg1', 'arg2']);
         
           Ti.API.log('DEBUG', 'Ti.API.log(DEBUG)');
           Ti.API.log('DEBUG', ['arg0', 'arg1', 'arg2']);
         
           Ti.API.log('INFO', 'Ti.API.log(INFO)');
           Ti.API.log('INFO', ['arg0', 'arg1', 'arg2']);
         
           Ti.API.log('WARN', 'Ti.API.log(WARN)');
           Ti.API.log('WARN', ['arg0', 'arg1', 'arg2']);
         
           Ti.API.log('ERROR', 'Ti.API.log(ERROR)');
           Ti.API.log('ERROR', ['arg0', 'arg1', 'arg2']);
         
           Ti.API.log('LOG', 'Ti.API.log(LOG)');
           Ti.API.log('LOG', ['arg0', 'arg1', 'arg2']);
         
           switch(Ti.Platform.osname)
           {
               case 'ipad':
               case 'iphone':
               {
                   Ti.API.timestamp('Ti.API.timestamp()');
                   Ti.API.timestamp(['arg0', 'arg1', 'arg2']);
               }
           }
       });
         
       win.add(button);
       win.open(); 
       
    Verified correct output. Closing as fixed. Tested with: Titanium Studio, build: 3.0.2.201302191606 Titanium SDK, build: 3.1.0.v20130306145654 CLI version 3.0.25 iPhone 6.1 Simulator

JSON Source