bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fix, GDL2, EOEntity (debug logging)


From: Georg Fleischmann
Subject: Fix, GDL2, EOEntity (debug logging)
Date: Mon, 28 Apr 2008 17:19:01 +0800

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();







reply via email to

[Prev in Thread] Current Thread [Next in Thread]