Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle logging of ignored values in class method, not #define #11

Merged
merged 1 commit into from Sep 3, 2013
Merged

Toggle logging of ignored values in class method, not #define #11

merged 1 commit into from Sep 3, 2013

Conversation

cdzombak
Copy link
Contributor

This addresses the issue raised by @andrewsardone in #10, using his proposed solution.

Users (CocoaPods users in particular) should now use the class method +[KZPropertyMapper logIgnoredValues:] to configure whether to log ignored values.

The previous method, via #define KZPropertyMapperLogIgnoredValues, will still work but is no longer exposed in the public interface.

Credit to @andrewsardone for the idea and for suggesting that the class method be placed in a Debug category,
to separate it from the class's main concern (that is, mapping stuff).

This addresses the issue raised by @andrewsardone in
#10, using his proposed
solution.

Users (CocoaPods users in particular) should now use the
class method `+[KZPropertyMapper logIgnoredValues:] to
configure whether to log ignored values.

The previous method, via `#define KZPropertyMapperLogIgnoredValues`,
will still work but is no longer exposed in the
public interface.

Credit to @andrewsardone for the idea and for suggesting
that the class method be placed in a Debug category,
to separate it from the class's main concern (that is,
mapping stuff).
krzysztofzablocki pushed a commit that referenced this pull request Sep 3, 2013
Toggle logging of ignored values in class method, not #define
@krzysztofzablocki krzysztofzablocki merged commit f6b84d9 into krzysztofzablocki:master Sep 3, 2013
@krzysztofzablocki
Copy link
Owner

Thanks guys!

@cdzombak cdzombak deleted the cdz-log-configuration branch September 3, 2013 16:26
@andrewsardone
Copy link
Contributor

Thank you, @krzysztofzablocki! Could you add a new version tag so an updated podspec could be added to CocoaPods/Specs?

@krzysztofzablocki
Copy link
Owner

@andrewsardone: Added tag 1.1,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants