fix: in debug mode, use the logger for echoing error reason instad of direct printf
authorgggeek <giunta.gaetano@gmail.com>
Tue, 24 Jan 2023 08:12:56 +0000 (08:12 +0000)
committergggeek <giunta.gaetano@gmail.com>
Tue, 24 Jan 2023 08:12:56 +0000 (08:12 +0000)
src/Request.php

index acf839e..153d731 100644 (file)
@@ -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
      */