Skip to content

Commit 2928d84

Browse files
committed
Spaceship: replace debug with debug2 for detailed output in complex debugging
1 parent d01aefd commit 2928d84

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dnsapi/dns_spaceship.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ _spaceship_api_request() {
183183
url="$2"
184184
payload="$3"
185185

186-
_debug "Sending $method request to $url with payload $payload"
186+
_debug2 "Sending $method request to $url with payload $payload"
187187
if [ "$method" = "GET" ]; then
188188
response="$(_get "$url")"
189189
else
@@ -195,7 +195,7 @@ _spaceship_api_request() {
195195
return 1
196196
fi
197197

198-
_debug "API response body: $response"
198+
_debug2 "API response body: $response"
199199

200200
if [ "$method" = "GET" ]; then
201201
if _contains "$(_head_n 1 <"$HTTP_HEADER")" '200'; then
@@ -207,6 +207,6 @@ _spaceship_api_request() {
207207
fi
208208
fi
209209

210-
_debug "API response header: $HTTP_HEADER"
210+
_debug2 "API response header: $HTTP_HEADER"
211211
return 1
212212
}

0 commit comments

Comments
 (0)