mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-02-23 19:51:13 +00:00
logs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18186 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8f69a795cb
commit
8a9dcc2b35
4 changed files with 30 additions and 16 deletions
|
@ -70,6 +70,7 @@ RCS_ID("$Id$")
|
||||||
{
|
{
|
||||||
if (!_reasons)
|
if (!_reasons)
|
||||||
{
|
{
|
||||||
|
NSDebugMLog(@"_exception reason=%@",[_exception reason]);
|
||||||
ASSIGN(_reasons,[[_exception reason] componentsSeparatedByString:@"\n"]);
|
ASSIGN(_reasons,[[_exception reason] componentsSeparatedByString:@"\n"]);
|
||||||
NSDebugMLog(@"_reasons=%@",_reasons);
|
NSDebugMLog(@"_reasons=%@",_reasons);
|
||||||
};
|
};
|
||||||
|
@ -88,6 +89,9 @@ RCS_ID("$Id$")
|
||||||
{
|
{
|
||||||
ASSIGN(_exception,exception);
|
ASSIGN(_exception,exception);
|
||||||
NSDebugMLog(@"_exception=%@",_exception);
|
NSDebugMLog(@"_exception=%@",_exception);
|
||||||
|
NSDebugMLog(@"_exception name=%@",[_exception name]);
|
||||||
|
NSDebugMLog(@"_exception reason=%@",[_exception reason]);
|
||||||
|
NSDebugMLog(@"_exception userInfo=%@",[_exception userInfo]);
|
||||||
};
|
};
|
||||||
|
|
||||||
-(id)getTmpUserInfoValue
|
-(id)getTmpUserInfoValue
|
||||||
|
|
|
@ -40,7 +40,7 @@ RCS_ID("$Id$")
|
||||||
#ifdef TCSDB
|
#ifdef TCSDB
|
||||||
#include <TCSimpleDB/TCSimpleDB.h>
|
#include <TCSimpleDB/TCSimpleDB.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef GDL2
|
#if HAVE_GDL2
|
||||||
#include <EOControl/EOKeyValueCoding.h>
|
#include <EOControl/EOKeyValueCoding.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -614,7 +614,7 @@ static NSMutableArray* associationsLogsHandlerClasses=nil;
|
||||||
forKeyPath:(NSString*)keyPath
|
forKeyPath:(NSString*)keyPath
|
||||||
{
|
{
|
||||||
id retValue=nil;
|
id retValue=nil;
|
||||||
#ifdef GDL2
|
#ifdef HAVE_GDL2
|
||||||
id EONullNull=[EONull null];
|
id EONullNull=[EONull null];
|
||||||
#else
|
#else
|
||||||
#ifdef TCSDB
|
#ifdef TCSDB
|
||||||
|
@ -624,13 +624,15 @@ static NSMutableArray* associationsLogsHandlerClasses=nil;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
LOGClassFnStart();
|
LOGClassFnStart();
|
||||||
NSDebugMLLog(@"associations",@"GSWAssociation: keyPath=%@ object=%p (class: %@)",
|
NSDebugMLLog(@"associations",@"GSWAssociation: keyPath=%@ object=%p (class: %@. SuperClass=%@)",
|
||||||
keyPath,object,[object class]);
|
keyPath,object,[object class],[object superclass]);
|
||||||
if (keyPath && object && object!=EONullNull)
|
if (keyPath && object && object!=EONullNull)
|
||||||
{
|
{
|
||||||
#if GDL2
|
#if HAVE_GDL2
|
||||||
NS_DURING
|
NS_DURING
|
||||||
{
|
{
|
||||||
|
NSDebugMLLog(@"associations",@"GSWAssociation: keyPath=%@ object=%p (class: %@. SuperClass=%@)",
|
||||||
|
keyPath,object,[object class],[object superclass]);
|
||||||
retValue=[object valueForKeyPath:keyPath];
|
retValue=[object valueForKeyPath:keyPath];
|
||||||
}
|
}
|
||||||
NS_HANDLER
|
NS_HANDLER
|
||||||
|
@ -653,8 +655,8 @@ static NSMutableArray* associationsLogsHandlerClasses=nil;
|
||||||
// the same as on GDL2
|
// the same as on GDL2
|
||||||
NS_DURING
|
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];
|
retValue=[object valueForKeyPath:keyPath];
|
||||||
}
|
}
|
||||||
NS_HANDLER
|
NS_HANDLER
|
||||||
|
@ -679,6 +681,8 @@ static NSMutableArray* associationsLogsHandlerClasses=nil;
|
||||||
Class handlerClass=Nil;
|
Class handlerClass=Nil;
|
||||||
retValue=object;
|
retValue=object;
|
||||||
NSAssert(retValue,@"No Component");
|
NSAssert(retValue,@"No Component");
|
||||||
|
NSDebugMLLog(@"associations",@"GSWAssociation: keyPath=%@ object=%p (class: %@. SuperClass=%@)",
|
||||||
|
keyPath,object,[object class],[object superclass]);
|
||||||
while(retValue && [keys count]>0)
|
while(retValue && [keys count]>0)
|
||||||
{
|
{
|
||||||
part=[keys objectAtIndex:0];
|
part=[keys objectAtIndex:0];
|
||||||
|
@ -802,7 +806,9 @@ static NSMutableArray* associationsLogsHandlerClasses=nil;
|
||||||
NSDebugMLLog(@"associations",@"GSWAssociation: setValue:%@",value);
|
NSDebugMLLog(@"associations",@"GSWAssociation: setValue:%@",value);
|
||||||
NSDebugMLLog(@"associations",@"value class:%@",[value class]);
|
NSDebugMLLog(@"associations",@"value class:%@",[value class]);
|
||||||
NSDebugMLLog(@"associations",@"value String class:%@",NSStringFromClass([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);
|
NSDebugMLLog(@"associations",@"GSWAssociation: keyPath:%@",keyPath);
|
||||||
|
|
||||||
// NSLog(@"GSWAssociation: setValue:%@ inObject:%@ forKeyPath:%@",value,object,keyPath);
|
// NSLog(@"GSWAssociation: setValue:%@ inObject:%@ forKeyPath:%@",value,object,keyPath);
|
||||||
|
@ -865,11 +871,13 @@ static NSMutableArray* associationsLogsHandlerClasses=nil;
|
||||||
NSDebugMLLog(@"associations",@"GSWAssociation: setValue:%@",value);
|
NSDebugMLLog(@"associations",@"GSWAssociation: setValue:%@",value);
|
||||||
NSDebugMLLog(@"associations",@"value class:%@",[value class]);
|
NSDebugMLLog(@"associations",@"value class:%@",[value class]);
|
||||||
NSDebugMLLog(@"associations",@"value String class:%@",NSStringFromClass([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);
|
NSDebugMLLog(@"associations",@"GSWAssociation: keyPath:%@",keyPath);
|
||||||
if (keyPath)
|
if (keyPath)
|
||||||
{
|
{
|
||||||
#if GDL2
|
#if HAVE_GDL2
|
||||||
[object smartTakeValue:value
|
[object smartTakeValue:value
|
||||||
forKeyPath:keyPath];
|
forKeyPath:keyPath];
|
||||||
#else // no GDL2
|
#else // no GDL2
|
||||||
|
@ -945,7 +953,7 @@ static NSMutableArray* associationsLogsHandlerClasses=nil;
|
||||||
GSWLogAssertGood(tmpObject);
|
GSWLogAssertGood(tmpObject);
|
||||||
[tmpObject takeValue:value
|
[tmpObject takeValue:value
|
||||||
forKey:part];
|
forKey:part];
|
||||||
#ifdef GDL2
|
#ifdef HAVE_GDL2
|
||||||
NSDebugMLLog(@"associations",@"object class=%@",[object class]);
|
NSDebugMLLog(@"associations",@"object class=%@",[object class]);
|
||||||
NSDebugMLLog(@"associations",@"tmpObject class=%@",[tmpObject class]);
|
NSDebugMLLog(@"associations",@"tmpObject class=%@",[tmpObject class]);
|
||||||
// Turbocat
|
// Turbocat
|
||||||
|
|
|
@ -508,8 +508,8 @@ Bindings
|
||||||
};
|
};
|
||||||
NS_HANDLER
|
NS_HANDLER
|
||||||
{
|
{
|
||||||
LOGException(@"GSWBrowser _selections=%@ itemValueToSet=%@ exception=%@",
|
LOGException(@"GSWBrowser _selections=%@ selectionsValue=%@ exception=%@",
|
||||||
_selections,itemValueToSet,localException);
|
_selections,selectionsValue,localException);
|
||||||
if (WOStrictFlag)
|
if (WOStrictFlag)
|
||||||
{
|
{
|
||||||
[localException raise];
|
[localException raise];
|
||||||
|
|
|
@ -215,9 +215,10 @@ RCS_ID("$Id$")
|
||||||
LOGObjectFnStart();
|
LOGObjectFnStart();
|
||||||
GSWStartElement(context);
|
GSWStartElement(context);
|
||||||
GSWSaveAppendToResponseElementID(context);
|
GSWSaveAppendToResponseElementID(context);
|
||||||
[response appendDebugCommentContentString:[NSString stringWithFormat:@"defName=%@ ID=%@",
|
[response appendDebugCommentContentString:[NSString stringWithFormat:@"defName=%@ ID=%@ name=%@",
|
||||||
[self definitionName],
|
[self definitionName],
|
||||||
[context elementID]]];
|
[context elementID],
|
||||||
|
_name]];
|
||||||
componentPrev=[context component];
|
componentPrev=[context component];
|
||||||
[self pushRefComponentInContext:context];
|
[self pushRefComponentInContext:context];
|
||||||
if ([context component])
|
if ([context component])
|
||||||
|
@ -250,7 +251,8 @@ RCS_ID("$Id$")
|
||||||
LOGObjectFnStart();
|
LOGObjectFnStart();
|
||||||
GSWStartElement(context);
|
GSWStartElement(context);
|
||||||
GSWAssertCorrectElementID(context);
|
GSWAssertCorrectElementID(context);
|
||||||
NSDebugMLLog(@"gswdync",@"senderId=%@",[context senderID]);
|
NSDebugMLLog(@"gswdync",@"name=%@ senderId=%@",
|
||||||
|
_name,[context senderID]);
|
||||||
componentPrev=[context component];
|
componentPrev=[context component];
|
||||||
[self pushRefComponentInContext:context];
|
[self pushRefComponentInContext:context];
|
||||||
if ([context component])
|
if ([context component])
|
||||||
|
|
Loading…
Reference in a new issue