* EOAccess/EODatabaseContext.m: Replace EOFLOGObjectLevel and

EOFLOGObjectLevelArgs with NSDebugMLLog.  Remove some
	superfluos
	NSLogs and replace others woth NSDebugMLLogs.  Reformat.
	* EOAccess/EOEntity.m ([EOEntity primaryKeyForGlobalID:]):
	Ditto.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@19343 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2004-05-15 23:58:06 +00:00
parent d4a065ec9d
commit d664f86ff8
3 changed files with 845 additions and 929 deletions

View file

@ -1,3 +1,10 @@
2004-05-16 David Ayers <d.ayers@inode.at>
* EOAccess/EODatabaseContext.m: Replace EOFLOGObjectLevel and
EOFLOGObjectLevelArgs with NSDebugMLLog. Remove some superfluos
NSLogs and replace others woth NSDebugMLLogs. Reformat.
* EOAccess/EOEntity.m ([EOEntity primaryKeyForGlobalID:]): Ditto.
2004-05-15 Matt Rice <ratmice@yahoo.com>
* EOAdaptors/Postgres95/Postgres95Channel.m

File diff suppressed because it is too large Load diff

View file

@ -3693,15 +3693,15 @@ createInstanceWithEditingContext:globalID:zone:
EOFLOGObjectFnStart();
EOFLOGObjectLevelArgs(@"EOEntity", @"gid=%@", gid);
NSDebugMLLog(@"EOEntity", @"gid=%@", gid);
if ([gid isKindOfClass: [EOKeyGlobalID class]]) //if ([gid isFinal])//?? or class test ??//TODO
{
NSArray *primaryKeyAttributeNames = [self primaryKeyAttributeNames];
int count = [primaryKeyAttributeNames count];
EOFLOGObjectLevelArgs(@"EOEntity", @"primaryKeyAttributeNames=%@",
primaryKeyAttributeNames);
NSDebugMLLog(@"EOEntity", @"primaryKeyAttributeNames=%@",
primaryKeyAttributeNames);
if (count > 0)
{
@ -3715,8 +3715,8 @@ createInstanceWithEditingContext:globalID:zone:
NSAssert1(dictionaryForPrimaryKey,
@"No dictionaryForPrimaryKey in entity %@",
[self name]);
EOFLOGObjectLevelArgs(@"EOEntity", @"dictionaryForPrimaryKey=%@",
dictionaryForPrimaryKey);
NSDebugMLLog(@"EOEntity", @"dictionaryForPrimaryKey=%@",
dictionaryForPrimaryKey);
for (i = 0; i < count; i++)
{
@ -3729,10 +3729,13 @@ createInstanceWithEditingContext:globalID:zone:
}
}
else
NSLog(@"EOEntity (%@): primaryKey is *nil* for globalID = %@", _name, gid);
{
NSDebugLog(@"EOEntity (%@): primaryKey is *nil* for globalID = %@",
_name, gid);
}
EOFLOGObjectLevelArgs(@"EOEntity", @"dictionaryForPrimaryKey=%@",
dictionaryForPrimaryKey);
NSDebugMLLog(@"EOEntity", @"dictionaryForPrimaryKey=%@",
dictionaryForPrimaryKey);
EOFLOGObjectFnStop();