usar el archivo de error configurado
además no hace falta borrarlo
This commit is contained in:
parent
676b3628bb
commit
a921e1fd5d
1 changed files with 1 additions and 2 deletions
|
@ -39,8 +39,7 @@ while :;do
|
||||||
unset curl_msg
|
unset curl_msg
|
||||||
err_time=$(date +%Y-%m-%d-%H:%M:%S)
|
err_time=$(date +%Y-%m-%d-%H:%M:%S)
|
||||||
[ ! -z "$remote_response" ] && srv_msg="- $( echo $remote_response | grep -o '<body.*>.*</body>')"
|
[ ! -z "$remote_response" ] && srv_msg="- $( echo $remote_response | grep -o '<body.*>.*</body>')"
|
||||||
[ -s "$curl_err" ] && curl_msg="- $(</tmp/curl_err)"
|
[ -s "$curl_err" ] && curl_msg="- $(<$curl_err)"
|
||||||
echo $err_time - $local_transaction_uuid - server status: $server_error $srv_msg $curl_msg >> $log
|
echo $err_time - $local_transaction_uuid - server status: $server_error $srv_msg $curl_msg >> $log
|
||||||
rm $curl_err
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue