* Log error in XML-RPC method call.
This commit is contained in:
parent
d896e79aeb
commit
e0b814216e
1 changed files with 8 additions and 3 deletions
|
@ -16,12 +16,14 @@
|
||||||
|
|
||||||
package helma.scripting.rhino.extensions;
|
package helma.scripting.rhino.extensions;
|
||||||
|
|
||||||
import helma.scripting.rhino.*;
|
import helma.framework.core.Application;
|
||||||
|
import helma.scripting.rhino.RhinoCore;
|
||||||
|
import org.apache.xmlrpc.XmlRpcClient;
|
||||||
import org.mozilla.javascript.*;
|
import org.mozilla.javascript.*;
|
||||||
import org.apache.xmlrpc.*;
|
|
||||||
import java.util.*;
|
|
||||||
import java.lang.reflect.Member;
|
import java.lang.reflect.Member;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
|
import java.util.Vector;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An extension to transparently call and serve XML-RPC from Rhino.
|
* An extension to transparently call and serve XML-RPC from Rhino.
|
||||||
|
@ -136,6 +138,9 @@ public class XmlRpcObject extends BaseFunction {
|
||||||
msg = x.toString();
|
msg = x.toString();
|
||||||
}
|
}
|
||||||
retval.put("error", retval, msg);
|
retval.put("error", retval, msg);
|
||||||
|
|
||||||
|
Application app = RhinoCore.getCore().getApplication();
|
||||||
|
app.logError(msg, x);
|
||||||
}
|
}
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
|
|
Loading…
Add table
Reference in a new issue