Configure logging ASAP

Wasn't logging errors in profiles decoding.
This commit is contained in:
Davide De Rosa 2018-10-25 09:32:55 +02:00
parent 0ac9cb285f
commit ae9c32e9f5
1 changed files with 6 additions and 4 deletions

View File

@ -33,10 +33,14 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDele
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
override init() {
AppConstants.Log.configure()
super.init()
}
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
InfrastructureFactory.shared.loadCache()
Theme.current.applyAppearance()
// Override point for customization after application launch.
let splitViewController = window!.rootViewController as! UISplitViewController
@ -50,8 +54,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDele
// splitViewController.preferredDisplayMode = .primaryOverlay
}
Theme.current.applyAppearance()
return true
}