From 7096ad93e9301d185e725130c7d51c47724b74f3 Mon Sep 17 00:00:00 2001 From: Manuel Guesdon Date: Mon, 24 Nov 2003 12:22:56 +0000 Subject: [PATCH] logs git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18186 72102866-910b-0410-8b05-ffd578937521 --- GSWExtensions.framework/GSWExceptionPage.m | 4 +++ GSWeb.framework/GSWAssociation.m | 30 ++++++++++++++-------- GSWeb.framework/GSWBrowser.m | 4 +-- GSWeb.framework/GSWComponentReference.m | 8 +++--- 4 files changed, 30 insertions(+), 16 deletions(-) diff --git a/GSWExtensions.framework/GSWExceptionPage.m b/GSWExtensions.framework/GSWExceptionPage.m index 716b42f..8716a0a 100644 --- a/GSWExtensions.framework/GSWExceptionPage.m +++ b/GSWExtensions.framework/GSWExceptionPage.m @@ -70,6 +70,7 @@ RCS_ID("$Id$") { if (!_reasons) { + NSDebugMLog(@"_exception reason=%@",[_exception reason]); ASSIGN(_reasons,[[_exception reason] componentsSeparatedByString:@"\n"]); NSDebugMLog(@"_reasons=%@",_reasons); }; @@ -88,6 +89,9 @@ RCS_ID("$Id$") { ASSIGN(_exception,exception); NSDebugMLog(@"_exception=%@",_exception); + NSDebugMLog(@"_exception name=%@",[_exception name]); + NSDebugMLog(@"_exception reason=%@",[_exception reason]); + NSDebugMLog(@"_exception userInfo=%@",[_exception userInfo]); }; -(id)getTmpUserInfoValue diff --git a/GSWeb.framework/GSWAssociation.m b/GSWeb.framework/GSWAssociation.m index f69eebd..ecbde4f 100644 --- a/GSWeb.framework/GSWAssociation.m +++ b/GSWeb.framework/GSWAssociation.m @@ -40,7 +40,7 @@ RCS_ID("$Id$") #ifdef TCSDB #include #endif -#ifdef GDL2 +#if HAVE_GDL2 #include #endif @@ -614,7 +614,7 @@ static NSMutableArray* associationsLogsHandlerClasses=nil; forKeyPath:(NSString*)keyPath { id retValue=nil; -#ifdef GDL2 +#ifdef HAVE_GDL2 id EONullNull=[EONull null]; #else #ifdef TCSDB @@ -624,13 +624,15 @@ static NSMutableArray* associationsLogsHandlerClasses=nil; #endif #endif LOGClassFnStart(); - NSDebugMLLog(@"associations",@"GSWAssociation: keyPath=%@ object=%p (class: %@)", - keyPath,object,[object class]); + NSDebugMLLog(@"associations",@"GSWAssociation: keyPath=%@ object=%p (class: %@. SuperClass=%@)", + keyPath,object,[object class],[object superclass]); if (keyPath && object && object!=EONullNull) { -#if GDL2 +#if HAVE_GDL2 NS_DURING { + NSDebugMLLog(@"associations",@"GSWAssociation: keyPath=%@ object=%p (class: %@. SuperClass=%@)", + keyPath,object,[object class],[object superclass]); retValue=[object valueForKeyPath:keyPath]; } NS_HANDLER @@ -653,8 +655,8 @@ static NSMutableArray* associationsLogsHandlerClasses=nil; // the same as on GDL2 NS_DURING { - // NSLog(@"GSWAssociation valueInObject:%@ forKeyPath:%@", object, keyPath); - + NSDebugMLLog(@"associations",@"GSWAssociation: keyPath=%@ object=%p (class: %@. SuperClass=%@)", + keyPath,object,[object class],[object superclass]); retValue=[object valueForKeyPath:keyPath]; } NS_HANDLER @@ -679,6 +681,8 @@ static NSMutableArray* associationsLogsHandlerClasses=nil; Class handlerClass=Nil; retValue=object; NSAssert(retValue,@"No Component"); + NSDebugMLLog(@"associations",@"GSWAssociation: keyPath=%@ object=%p (class: %@. SuperClass=%@)", + keyPath,object,[object class],[object superclass]); while(retValue && [keys count]>0) { part=[keys objectAtIndex:0]; @@ -802,7 +806,9 @@ static NSMutableArray* associationsLogsHandlerClasses=nil; NSDebugMLLog(@"associations",@"GSWAssociation: setValue:%@",value); NSDebugMLLog(@"associations",@"value class:%@",[value class]); NSDebugMLLog(@"associations",@"value String class:%@",NSStringFromClass([value class])); - NSDebugMLLog(@"associations",@"object String class:%@",NSStringFromClass([object class])); + NSDebugMLLog(@"associations",@"object String class:%@ superclass=%@", + NSStringFromClass([object class]), + NSStringFromClass([object superclass])); NSDebugMLLog(@"associations",@"GSWAssociation: keyPath:%@",keyPath); // NSLog(@"GSWAssociation: setValue:%@ inObject:%@ forKeyPath:%@",value,object,keyPath); @@ -865,11 +871,13 @@ static NSMutableArray* associationsLogsHandlerClasses=nil; NSDebugMLLog(@"associations",@"GSWAssociation: setValue:%@",value); NSDebugMLLog(@"associations",@"value class:%@",[value class]); NSDebugMLLog(@"associations",@"value String class:%@",NSStringFromClass([value class])); - NSDebugMLLog(@"associations",@"object String class:%@",NSStringFromClass([object class])); + NSDebugMLLog(@"associations",@"object String class:%@ superclass=%@", + NSStringFromClass([object class]), + NSStringFromClass([object superclass])); NSDebugMLLog(@"associations",@"GSWAssociation: keyPath:%@",keyPath); if (keyPath) { -#if GDL2 +#if HAVE_GDL2 [object smartTakeValue:value forKeyPath:keyPath]; #else // no GDL2 @@ -945,7 +953,7 @@ static NSMutableArray* associationsLogsHandlerClasses=nil; GSWLogAssertGood(tmpObject); [tmpObject takeValue:value forKey:part]; -#ifdef GDL2 +#ifdef HAVE_GDL2 NSDebugMLLog(@"associations",@"object class=%@",[object class]); NSDebugMLLog(@"associations",@"tmpObject class=%@",[tmpObject class]); // Turbocat diff --git a/GSWeb.framework/GSWBrowser.m b/GSWeb.framework/GSWBrowser.m index f3b3610..3da56db 100644 --- a/GSWeb.framework/GSWBrowser.m +++ b/GSWeb.framework/GSWBrowser.m @@ -508,8 +508,8 @@ Bindings }; NS_HANDLER { - LOGException(@"GSWBrowser _selections=%@ itemValueToSet=%@ exception=%@", - _selections,itemValueToSet,localException); + LOGException(@"GSWBrowser _selections=%@ selectionsValue=%@ exception=%@", + _selections,selectionsValue,localException); if (WOStrictFlag) { [localException raise]; diff --git a/GSWeb.framework/GSWComponentReference.m b/GSWeb.framework/GSWComponentReference.m index c4333be..313b1f4 100644 --- a/GSWeb.framework/GSWComponentReference.m +++ b/GSWeb.framework/GSWComponentReference.m @@ -215,9 +215,10 @@ RCS_ID("$Id$") LOGObjectFnStart(); GSWStartElement(context); GSWSaveAppendToResponseElementID(context); - [response appendDebugCommentContentString:[NSString stringWithFormat:@"defName=%@ ID=%@", + [response appendDebugCommentContentString:[NSString stringWithFormat:@"defName=%@ ID=%@ name=%@", [self definitionName], - [context elementID]]]; + [context elementID], + _name]]; componentPrev=[context component]; [self pushRefComponentInContext:context]; if ([context component]) @@ -250,7 +251,8 @@ RCS_ID("$Id$") LOGObjectFnStart(); GSWStartElement(context); GSWAssertCorrectElementID(context); - NSDebugMLLog(@"gswdync",@"senderId=%@",[context senderID]); + NSDebugMLLog(@"gswdync",@"name=%@ senderId=%@", + _name,[context senderID]); componentPrev=[context component]; [self pushRefComponentInContext:context]; if ([context component])