[TIMOB-24310] iOS: TiLogServer started at the wrong app state
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Low |
| Status | Resolved |
| Resolution | Cannot Reproduce |
| Resolution Date | 2017-01-20T20:18:19.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | ios, logs |
| Reporter | Hans Knöchel |
| Assignee | Hans Knöchel |
| Created | 2017-01-14T11:15:04.000+0000 |
| Updated | 2017-01-20T20:18:19.000+0000 |
Description
The
TiLogServer introduced in 6.0.0 currently starts in application:didFinishLaunching or application:didFinishLauching:withOptions (when it launches from the background). By doing that, we are missing three logs:
[INFO] Application started
[DEBUG] Reading stylesheet from: /Users/hknoechel/Library/Developer/CoreSimulator/Devices/B1E64A97-DC1C-482D-BA35-CCC66CFF1479/data/Containers/Bundle/Application/E05B2B87-41C8-48B4-A106-F9DB29FAFDC9/Mensa.app/stylesheet.plist
[INFO] Mensa/3.0.0 (5.5.1.b18727f)
This could be fixed by placing the [TiLogServer startServer] in the init of TiHost already. I worked during my tests and I see no downsides, but I'd be happy to have feedback!
PR: https://github.com/appcelerator/titanium_mobile/pull/8752
See comment in PR.