Author: rfm
Date: Sat Oct 3 20:56:08 2015
New Revision: 39024
URL: http://svn.gna.org/viewcvs/gnustep?rev=39024&view=rev
Log:
imprve exception logging
Modified:
libs/base/trunk/Source/NSRunLoop.m
libs/base/trunk/Source/NSTimer.m
Modified: libs/base/trunk/Source/NSRunLoop.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Source/NSRunLoop.m?rev=39024&r1=39023&r2=39024&view=diff
==============================================================================
--- libs/base/trunk/Source/NSRunLoop.m (original)
+++ libs/base/trunk/Source/NSRunLoop.m Sat Oct 3 20:56:08 2015
@@ -112,9 +112,11 @@
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
Modified: libs/base/trunk/Source/NSTimer.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Source/NSTimer.m?rev=39024&r1=39023&r2=39024&view=diff
==============================================================================
--- libs/base/trunk/Source/NSTimer.m (original)
+++ libs/base/trunk/Source/NSTimer.m Sat Oct 3 20:56:08 2015
@@ -244,9 +244,11 @@
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
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs