mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
ac53087213
commit
5f6700adcc
2 changed files with 8 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue