fpillet / NSLogger

A modern, flexible logging tool
Other
5k stars 573 forks source link

Fix for file compatibility issue caused by migration to ARC. #279

Closed vladiulianbogdan closed 5 years ago

vladiulianbogdan commented 5 years ago

When the code was converted from MRC to ARC, the keys that were used in initWithCoder from LoggerConnection have changed. That was causing older .nsloggerdata exported by older NSLogger versions to not be compatible with the newer version.

The fix is to fallback on older keys if the new keys return nil.

fpillet commented 5 years ago

Thanks a lot! I completely missed this issue, good that you caught it.