Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12403] SDK Console: log messages are incorrect capitalization

GitHub Issuen/a
TypeSub-task
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2016-08-18T20:31:18.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsiOS
Labelsqe-sdk3.0.2, sdk-console
ReporterDustin Hyde
AssigneeEric Merriman
Created2013-01-23T20:42:06.000+0000
Updated2017-03-24T21:58:55.000+0000

Description

DEBUG messages print as [debug] in Studio and [DEBUG] in Xcode. Log files attached. Steps to Reproduce: 1. Run KitchenSink in iOS Simulator or Device. 2. Capture console log. 3. Run transport.py on KitchenSink and run in iOS Simulator or Device using Xcode. 4. Capture console log. Actual Result: DEBUG messages print as [debug] in Studio. Expected Result: DEBUG messages print as [DEBUG] in Studio.

Attachments

FileDateSize
studio.rtf2013-01-23T20:42:06.000+00003242
xcode.rtf2013-01-23T20:42:06.000+00003455

Comments

  1. Michael Xia 2013-01-23

    @Dustin - I don't think we modify or insert anything to the output we received in Studio, so suspect this is a CLI problem. Could you run the command from command line using CLI and see if it shows "[error]" in the log?
  2. Dustin Hyde 2013-01-23

    Only occurs on debug on ios device. Sample Code:
       alert('SESSION ID: ' + Ti.App.sessionId); 
       Ti.API.error('SESSION ID: ' + Ti.App.sessionId); 
       Ti.API.error('ERROR => Ti.API.error'); 
       Ti.API.log('ERROR', 'ERROR => Ti.API.log'); 
       Ti.API.warn('WARN => Ti.API.warn'); 
       Ti.API.log('WARN', 'WARN => Ti.API.log'); 
       Ti.API.info('INFO => Ti.API.info'); 
       Ti.API.log('INFO', 'INFO => Ti.API.log'); 
       Ti.API.debug('DEBUG => Ti.API.debug'); 
       Ti.API.log('DEBUG', 'DEBUG => Ti.API.log'); 
       Ti.API.trace('TRACE => Ti.API.trace'); 
       Ti.API.log('TRACE', 'TRACE => Ti.API.log'); 
       Ti.API.log('FREEFORM', 'FREEFORM => Ti.API.log');
       
    Console Output:
       [DEBUG] Analytics is enabled = YES
       [DEBUG] Loading: /var/mobile/Applications/74EC68C4-08DE-422C-B1B1-55BD1D06DD9C/MyProject.app/app.js, Resource: app_js
       [warn] WARN => Ti.API.warn
       [WARN] WARN => Ti.API.log
       [INFO] INFO => Ti.API.info
       [INFO] INFO => Ti.API.log
       [debug] DEBUG => Ti.API.debug
       [DEBUG] DEBUG => Ti.API.log
       [trace] TRACE => Ti.API.trace
       [TRACE] TRACE => Ti.API.log
       [FREEFORM] FREEFORM => Ti.API.log
       [DEBUG] Application booted in 14870.001972 ms
       [error] SESSION ID: 815B3A6C-6556-4CCE-8A7A-98BDB39D6A4E
       [error] ERROR => Ti.API.error
       [ERROR] ERROR => Ti.API.log
       
  3. Michael Xia 2013-01-24

    This looks to be a SDK issue as Ti.API.warn(...) and Ti.API.debug(...) are generating logs with [warn] and [debug] inserted, instead of the ones with all capital letters.
  4. Chris Barber 2016-08-18

    Verified works as expected with Titanium SDK 6.
       [ERROR] SESSION ID: 5944F5FB-B402-41BD-AB6E-1512155BCA45
       [ERROR] ERROR => Ti.API.error
       [ERROR] ERROR => Ti.API.log
       [WARN]  WARN => Ti.API.warn
       [WARN]  WARN => Ti.API.log
       [INFO]  INFO => Ti.API.info
       [INFO]  INFO => Ti.API.log
       [DEBUG] DEBUG => Ti.API.debug
       [DEBUG] DEBUG => Ti.API.log
       [TRACE] TRACE => Ti.API.trace
       [TRACE] TRACE => Ti.API.log
       [TRACE] [FREEFORM] FREEFORM => Ti.API.log
       
  5. Lee Morris 2017-03-24

    Closing ticket as the issue cannot be reproduced and with reference to the previous comments.

JSON Source