envoie des erreurs soap par firephp
This commit is contained in:
parent
c78d1d365a
commit
a160f73585
@ -28,6 +28,9 @@ function processSoapFault($clientSoap, $fault, $tabInfo, $debug = FALSE){
|
||||
$message = 'Request : '. htmlspecialchars($clientSoap->__getLastRequest()) . '<br/><br/>' .
|
||||
'Response : '. htmlspecialchars($clientSoap->__getLastResponse()) . '<br/><br/>';
|
||||
|
||||
$firephp->log($clientSoap->__getLastRequest(),'getLastRequest');
|
||||
$firephp->log($clientSoap->__getLastResponse(),'getLastResponse');
|
||||
|
||||
if(is_object($fault)){
|
||||
|
||||
}else{
|
||||
@ -94,8 +97,6 @@ function mailSoapFault($message)
|
||||
*/
|
||||
function logSoapFault($message)
|
||||
{
|
||||
global $firephp;
|
||||
$firephp->log($message,'SOAP');
|
||||
$fichier = 'errorsoap-'.date('Y').date('m').date('d').date('H').date('i').date('s').'.txt';
|
||||
file_put_contents(PATH_DATA.'/log/'.$fichier, $message);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user