3lvis / DATAStack

100% Swift Simple Boilerplate Free Core Data Stack. NSPersistentContainer
Other
214 stars 44 forks source link

Log if backgroundContext was created in main thread #78

Closed Sorix closed 8 years ago

Sorix commented 8 years ago

Little addition to help developer to catch Core Data crashes if backgroundContext was created in incorrect thread. Very often Core Data in that cases shows in NSLog something non-human readable if you you’re accidentally forget about threads.

3lvis commented 8 years ago

Nothing worse than unwanted logs. I hate when that happens. Also is not a problem if you create a background context in the main thread, the problem is when you save a background context in the main thread. 💭