Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24310] iOS: TiLogServer started at the wrong app state

GitHub Issuen/a
TypeBug
PriorityLow
StatusResolved
ResolutionCannot Reproduce
Resolution Date2017-01-20T20:18:19.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsios, logs
ReporterHans Knöchel
AssigneeHans Knöchel
Created2017-01-14T11:15:04.000+0000
Updated2017-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!

Comments

  1. Hans Knöchel 2017-01-14

    PR: https://github.com/appcelerator/titanium_mobile/pull/8752
  2. Chris Barber 2017-01-19

    See comment in PR.

JSON Source