Skip to content

Commit 06d3739

Browse files
committed
Cleanup duplicate debug log output based on DNS test run
1 parent bff1064 commit 06d3739

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

dnsapi/dns_openprovider_rest.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,8 @@ _openprovider_rest() {
113113
export _H1="Content-Type: application/json"
114114
export _H2="Accept: application/json"
115115
export _H3="Authorization: Bearer $openproviderauthtoken"
116-
117-
_debug httpmethod "$httpmethod"
118-
_debug requestfullurl "$OPENPROVIDER_API_URL/$queryparameters"
119-
_debug queryparameters "$queryparameters"
120-
116+
121117
if [ "$httpmethod" != "GET" ]; then
122-
_debug requestbody "$requestbody"
123-
124118
response="$(_post "$requestbody" "$OPENPROVIDER_API_URL/$queryparameters" "" "$httpmethod")"
125119
else
126120
response="$(_get "$OPENPROVIDER_API_URL/$queryparameters")"
@@ -145,7 +139,6 @@ _openprovider_rest_login() {
145139
loginresponse="$(_post "$loginrequestbody" "$loginrequesturl" "" "POST")"
146140

147141
openproviderauthtoken="$(printf "%s\n" "$loginresponse" | _egrep_o '"token" *: *"[^"]*' | _head_n 1 | sed 's#^"token" *: *"##')"
148-
_debug openproviderauthtoken "$openproviderauthtoken"
149142

150143
export openproviderauthtoken
151144
}

0 commit comments

Comments
 (0)