Hello,

here are two small fixes in EOEntity for debug logging.
The fix uses [dictionaryForPrimaryKey debugDescription] for logging, for the default (-description) will throw an exception (on Mac OS X) if the dictionary contains <null> entries.

Best wishes,
Georg Fleischmann



*** EOAccess/EOEntity.m.old     Tue Apr  1 13:30:33 2008
--- EOAccess/EOEntity.m Mon Apr 28 17:04:13 2008
***************
*** 1569,1575 ****
                        @"No dictionaryForPrimaryKey in entity %@",
                          [self name]);
NSDebugMLLog(@"EOEntity", @"dictionaryForPrimaryKey=% @",
!                          dictionaryForPrimaryKey);

                for (i = 0; i < count; i++)
                  {
--- 1569,1575 ----
                        @"No dictionaryForPrimaryKey in entity %@",
                          [self name]);
NSDebugMLLog(@"EOEntity", @"dictionaryForPrimaryKey=% @",
!                          [dictionaryForPrimaryKey debugDescription]);

                for (i = 0; i < count; i++)
                  {
***************
*** 2877,2883 ****
                                      instanceDictionaryInitializer];
      }
    EOFLOGObjectLevelArgs(@"EOEntity", @"dictionaryForProperties=%@",
!                       dictionaryForProperties);

    EOFLOGObjectFnStop();

--- 2877,2883 ----
                                      instanceDictionaryInitializer];
      }
    EOFLOGObjectLevelArgs(@"EOEntity", @"dictionaryForProperties=%@",
!                       [dictionaryForProperties debugDescription]);

    EOFLOGObjectFnStop();





_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to