Skip to content
This repository was archived by the owner on May 8, 2020. It is now read-only.

Restore logging if no completion handler given#12

Open
richardbuckle wants to merge 1 commit intodanielctull:masterfrom
richardbuckle:fix-save-logging
Open

Restore logging if no completion handler given#12
richardbuckle wants to merge 1 commit intodanielctull:masterfrom
richardbuckle:fix-save-logging

Conversation

@richardbuckle
Copy link

The logging in NSManagedObjectContext+DCTCoreDataStack.m was never called because the override in _DCTCDSManagedObjectContext was adding a no-op completion handler if none was passed in.

Moving the logging to the completion handler added by _DCTCDSManagedObjectContext fixes this.

(Fix suggested by Daniel Tull)

The logging in NSManagedObjectContext+DCTCoreDataStack.m was never called because the override in _DCTCDSManagedObjectContext was adding a no-op completion handler if none was passed in.

Moving the logging to the completion handler added by _DCTCDSManagedObjectContext fixes this.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments