system.log only accepts strings as the log message
--------------------------------------------------

                 Key: MASHUP-994
                 URL: https://wso2.org/jira/browse/MASHUP-994
             Project: WSO2 Mashup Server
          Issue Type: Improvement
            Reporter: Keith Godwin Chapman
            Assignee: Channa Gunawardena


function bar(){
system.log(0);
}


The error below is thrown if the above function is executed. We could easily 
log to toString result if the argument is not a String

ERROR [2008-07-19 18:37:58,599]  The first argument should contain a message to 
log
org.wso2.mashup.MashupFault: The first argument should contain a message to log
        at 
org.wso2.mashup.hostobjects.system.SystemHostObject.jsFunction_log(SystemHostObject.java:920)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

_______________________________________________
Mashup-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to