From: gggeek Date: Tue, 24 Jan 2023 08:12:56 +0000 (+0000) Subject: fix: in debug mode, use the logger for echoing error reason instad of direct printf X-Git-Tag: 4.10.0~91 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=053445b35bb4d50e8a441295d2a94ed586ce2cab;p=plcapi.git fix: in debug mode, use the logger for echoing error reason instad of direct printf --- diff --git a/src/Request.php b/src/Request.php index acf839e6..153d7310 100644 --- a/src/Request.php +++ b/src/Request.php @@ -361,7 +361,7 @@ class Request ); if ($this->debug) { - print $xmlRpcParser->_xh['isf_reason']; + $this->getLogger()->debugMessage($xmlRpcParser->_xh['isf_reason']); } } // second error check: xml well-formed but not xml-rpc compliant @@ -419,7 +419,7 @@ class Request } /** - * Kept the old name even if Request class was renamed, for compatibility. + * Kept the old name even if Request class was renamed, for BC. * * @return string */