diff options
author | Colin Smith <colin@pfsense.org> | 2005-07-17 22:27:43 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-07-17 22:27:43 +0000 |
commit | 27afc5d098c502583323001a5df387ee525930a0 (patch) | |
tree | a5ea190c915a7fa3643e083a0aeb477e3047a33f /etc/inc | |
parent | cecdf31c8104e99e87518f9c2f038436340babef (diff) | |
download | pfsense-27afc5d098c502583323001a5df387ee525930a0.zip pfsense-27afc5d098c502583323001a5df387ee525930a0.tar.gz |
Silence HTTP errors by commenting out log_error(). This does not affect errors being reported in XML_RPC_Response.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/xmlrpc_client.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/xmlrpc_client.inc b/etc/inc/xmlrpc_client.inc index ac138d2..2f22e2b 100644 --- a/etc/inc/xmlrpc_client.inc +++ b/etc/inc/xmlrpc_client.inc @@ -1273,7 +1273,7 @@ class XML_RPC_Message extends XML_RPC_Base !preg_match('@^HTTP/[0-9\.]+ 10[0-9]([A-Za-z ]+)?[\r\n]+HTTP/[0-9\.]+ 200@', $data)) { $errstr = substr($data, 0, strpos($data, "\n") - 1); - error_log('HTTP error, got response: ' . $errstr); + //error_log('HTTP error, got response: ' . $errstr); $r = new XML_RPC_Response(0, $XML_RPC_err['http_error'], $XML_RPC_str['http_error'] . ' (' . $errstr . ')'); @@ -1305,7 +1305,7 @@ class XML_RPC_Message extends XML_RPC_Base xml_error_string(xml_get_error_code($parser_resource)), xml_get_current_line_number($parser_resource)); } - error_log($errstr); + //error_log($errstr); $r = new XML_RPC_Response(0, $XML_RPC_err['invalid_return'], $XML_RPC_str['invalid_return']); xml_parser_free($parser_resource); @@ -1851,4 +1851,4 @@ function XML_RPC_encode($php_val) * End: */ -?>
\ No newline at end of file +?> |