imprve exception logging

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39024 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2015-10-03 18:56:08 +00:00
parent ac53087213
commit 5f6700adcc
2 changed files with 8 additions and 4 deletions

View file

@ -112,9 +112,11 @@ static NSDate *theFuture = nil;
NS_HANDLER
{
NSLog(@"*** NSRunLoop ignoring exception '%@' (reason '%@') "
@"raised during performSelector... with target %p "
@"raised during performSelector... with target %s(%s) "
@"and selector '%s'",
[localException name], [localException reason], target,
[localException name], [localException reason],
GSClassNameFromObject(target),
GSObjCIsInstance(target) ? "instance" : "class",
sel_getName(selector));
}
NS_ENDHANDLER

View file

@ -244,9 +244,11 @@ static Class NSDate_class;
NS_HANDLER
{
NSLog(@"*** NSTimer ignoring exception '%@' (reason '%@') "
@"raised during posting of timer with target %p "
@"raised during posting of timer with target %s(%s) "
@"and selector '%@'",
[localException name], [localException reason], target,
[localException name], [localException reason],
GSClassNameFromObject(target),
GSObjCIsInstance(target) ? "instance" : "class",
NSStringFromSelector([target selector]));
}
NS_ENDHANDLER