From e10fcc7f7116070e724fc1d54ca4dfdd23526cca Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.anjos@idiap.ch>
Date: Fri, 23 Jun 2017 15:15:33 +0200
Subject: [PATCH] Improve logging

---
 gitlab/functions.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gitlab/functions.sh b/gitlab/functions.sh
index 7a350d0..c925479 100644
--- a/gitlab/functions.sh
+++ b/gitlab/functions.sh
@@ -230,7 +230,7 @@ dav_mkdir() {
 # Deletes a file/folder from our intranet location via curl
 # $1: Path to the file/folder to delete (e.g. dist/myfile.whl)
 dav_delete() {
-  log_info "curl: EXISTS ${1}?"
+  log_info "curl: EXISTS ${DOCSERVER}/${1}?"
 
   # checks if the directory exists before trying to remove it (use --head)
   local code=$(curl --location --silent --fail --write-out "%{http_code}" --head --user "${DOCUSER}:${DOCPASS}" "${DOCSERVER}/$1")
@@ -239,11 +239,11 @@ dav_delete() {
     return 0
   fi
 
-  log_info "curl: DELETE ${1}..."
+  log_info "curl: DELETE ${DOCSERVER}/${1}..."
   code=$(curl --location --silent --fail --write-out "%{http_code}" --user "${DOCUSER}:${DOCPASS}" -X DELETE "${DOCSERVER}/$1")
 
   if [[ ${code} == *204 || ${code} == *201 ]]; then
-    log_info "Successfully deleted ${1} with curl"
+    log_info "Successfully deleted ${DOCSERVER}/${1} with curl"
   else
     log_error "Curl command finished with an error condition (code=${code}):"
     curl --location --silent --user "${DOCUSER}:${DOCPASS}" -X DELETE "${DOCSERVER}/$1"
@@ -421,7 +421,7 @@ export_env SSL_CERT_FILE
 # See: https://gitlab.idiap.ch/bob/bob.admin/issues/2
 
 # Prefix differs between private & public repos
-DOC_SERVER_PREFIX="-upload/docs/${CI_PROJECT_PATH}/"
+DOC_SERVER_PREFIX="-upload/docs/${CI_PROJECT_PATH}"
 if [[ "${VISIBILITY}" == "public" ]]; then
   DOC_SERVER_PREFIX="public${DOC_SERVER_PREFIX}"
 else
-- 
GitLab