From 05a270f18025483a712d99a03f1890b0a6b66da5 Mon Sep 17 00:00:00 2001
From: jaden <noreply@example.com>
Date: Tue, 27 Jun 2017 10:55:30 +0200
Subject: [PATCH] add ms to logging

---
 gitlab/functions.sh | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/gitlab/functions.sh b/gitlab/functions.sh
index 83ca826..a62ec6c 100644
--- a/gitlab/functions.sh
+++ b/gitlab/functions.sh
@@ -37,24 +37,28 @@ is_master() {
 }
 
 
+log_date() {
+	date +%T.%3N
+}
+
 # Functions for coloring echo commands
 log_debug() {
-  echo -e "(`date +%T`) \033[1;32m${@}\033[0m"
+  echo -e "$(log_date) \033[1;32m${@}\033[0m"
 }
 
 
 log_info() {
-  echo -e "(`date +%T`) \033[1;34m${@}\033[0m"
+  echo -e "$(log_date) \033[1;34m${@}\033[0m"
 }
 
 
 log_warn() {
-  echo -e "(`date +%T`) \033[1;35mWarning: ${@}\033[0m" >&2
+  echo -e "$(log_date) \033[1;35mWarning: ${@}\033[0m" >&2
 }
 
 
 log_error() {
-  echo -e "(`date +%T`) \033[1;31mError: ${@}\033[0m" >&2
+  echo -e "$(log_date) \033[1;31mError: ${@}\033[0m" >&2
 }
 
 
@@ -249,7 +253,7 @@ dav_recursive_mkdir() {
 
     # make sure the current subpath folder is created
     # a 405 exit code is returned when the folder already exists
-    dav_mkdir "$DOCSERVER/$current_subpath" 405
+    dav_mkdir "$current_subpath" 405
     log_info "Directory ${current_subpath} (now) exists."
   done
 }
-- 
GitLab