Skip to content

Commit ed0758d

Browse files
author
Matthias Fuchs
committed
better logging if java method invokation fails
1 parent 4356247 commit ed0758d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

java/src/ca/weblite/objc/NSObject.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
* @author shannah
5656
*/
5757
public class NSObject extends Proxy implements PeerableRecipient {
58-
58+
private static final Logger LOG = Logger.getLogger("NSObject");
5959

6060

6161
/**
@@ -514,6 +514,7 @@ public void forwardInvocation(long linvocation) {
514514

515515
return;
516516
} catch (Exception ex){
517+
LOG.log(Level.SEVERE, String.format("Method invocation caused exception: %s", method));
517518
ex.printStackTrace(System.err);
518519
throw new RuntimeException(ex);
519520
}

0 commit comments

Comments
 (0)