From 4232c9b412c49cbdae7c32cd5ddf53412fbb31b9 Mon Sep 17 00:00:00 2001
From: giordano <domenico.giordano@cern.ch>
Date: Mon, 15 Jul 2019 11:53:39 +0200
Subject: [PATCH] the date should be at the same level of the log printout

---
 build-executor/main.sh | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/build-executor/main.sh b/build-executor/main.sh
index c64cc7b7..29813393 100755
--- a/build-executor/main.sh
+++ b/build-executor/main.sh
@@ -19,12 +19,10 @@ function fail(){
 }
 
 function execute_command(){
-  date
-  echo "[execute_command] Executing '$@'"
+  echo "`date` [execute_command] Executing '$@'"
   eval "$@"
   status=$?
-  echo "[execute_command] Return code: ${status}"
-  date
+  echo "`date` [execute_command] Return code: ${status}"
   return ${status}
 }
 
-- 
GitLab