krzysztofzablocki / PropertyMapper

Property mapping for Objective-C iOS apps.
http://merowing.info
MIT License
1.13k stars 81 forks source link

Suppressing error messages #57

Closed ghost closed 8 years ago

ghost commented 8 years ago

Is it possible, to somehow disable warnings like: KZPropertyMapper: Ignoring mapping from matchTime to matchTime because type (null) does NOT match NSString

I'm avare that this might be null, NSString out of null is empty. I'm ready for that, but it just overflows my log and would not like to see it.

ghost commented 8 years ago

Krzysztof, bump:) Da sie coś z tym zrobić?

krzysztofzablocki commented 8 years ago

did you try [KZPropertyMapper logIgnoredValues: NO] ? or alternative is to just set debug flag KZPropertyMapperLogIgnoredValues

ghost commented 8 years ago

That's great!

But is there any possibility to limit it per property/single mapping dictionary?

krzysztofzablocki commented 8 years ago

it's a function so you can call it before / after mapping, not on per property basis but on per dict basis it would work. That is assuming you aren't running multiple ones in parallel, if you wanted to have it work in parallel you could send me a PR that could add the ignore configuration into the mapping method itself.