[TIMOB-25809] ES6: Logs do not work anymore
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2019-05-14T21:53:41.000+0000 |
Affected Version/s | Release 7.1.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | engTriage, es6, logging |
Reporter | Hans Knöchel |
Assignee | Unknown |
Created | 2018-02-25T13:50:51.000+0000 |
Updated | 2019-05-14T21:53:41.000+0000 |
Description
While migrating my [canteen app](https://github.com/hansemannn/studentenfutter-app) to ES6, I noticed that logs (e.g.
Ti.API.warn
) do not work anymore. The only logs appearing are:
[TRACE] [ioslib] App launched
[TRACE] [ioslib] Trying to connect to log server port 28416...
[TRACE] [ioslib] Connected to log server port 28416
-- Start simulator log -------------------------------------------------------
[TRACE] updating tiapp metadata with Appcelerator Platform...
[TRACE] Uploaded tiapp metadata with Appcelerator Platform!
To reproduce:
var win = Ti.UI.createWindow({
backgroundColor: '#fff'
});
var btn = Ti.UI.createButton({
title: 'Trigger'
});
btn.addEventListener('click', function() {
Ti.API.error('Hello?')
});
win.add(btn);
win.open();
[~hknoechel] Weird, I'm using the same SDK version and I can see the logs just fine from both ti and appc
Unable to reproduce.I can also see the logs just fine from both ti and appc. Node.js Node.js Version = 8.11.3 npm Version = 6.7.0 Titanium CLI CLI Version = 5.1.1 Titanium SDK SDK Version = 8.0.0.GA