Skip to content
Snippets Groups Projects
Commit e3c225bb authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Improve logging

parent 606e3ff4
Branches
Tags
No related merge requests found
......@@ -199,7 +199,7 @@ dav_upload() {
local code=`curl --location --silent --fail --write-out "%{http_code}" --user "${DOCUSER}:${DOCPASS}" --upload-file ${1} ${DOCSERVER}/${2}`
if [[ ${code} == *204 || ${code} == *201 ]]; then
log_info "curl: cp ${1} -> ${DOCSERVER}/${2}..."
log_info "curl: cp ${1} -> ${DOCSERVER}/${2}"
else
log_error "Curl command finished with an error condition (code=${code}):"
curl --location --silent --user "${DOCUSER}:${DOCPASS}" --upload-file ${1} ${DOCSERVER}/${2}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment