mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-04-29 21:32:44 +00:00
Spaceship: replace debug with debug2 for detailed output in complex debugging
This commit is contained in:
parent
d01aefd1eb
commit
2928d84339
@ -183,7 +183,7 @@ _spaceship_api_request() {
|
|||||||
url="$2"
|
url="$2"
|
||||||
payload="$3"
|
payload="$3"
|
||||||
|
|
||||||
_debug "Sending $method request to $url with payload $payload"
|
_debug2 "Sending $method request to $url with payload $payload"
|
||||||
if [ "$method" = "GET" ]; then
|
if [ "$method" = "GET" ]; then
|
||||||
response="$(_get "$url")"
|
response="$(_get "$url")"
|
||||||
else
|
else
|
||||||
@ -195,7 +195,7 @@ _spaceship_api_request() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_debug "API response body: $response"
|
_debug2 "API response body: $response"
|
||||||
|
|
||||||
if [ "$method" = "GET" ]; then
|
if [ "$method" = "GET" ]; then
|
||||||
if _contains "$(_head_n 1 <"$HTTP_HEADER")" '200'; then
|
if _contains "$(_head_n 1 <"$HTTP_HEADER")" '200'; then
|
||||||
@ -207,6 +207,6 @@ _spaceship_api_request() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_debug "API response header: $HTTP_HEADER"
|
_debug2 "API response header: $HTTP_HEADER"
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user