From cd40f4ea729e8eb4f3ff927e0d07eb5719a59ab4 Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Thu, 3 Dec 2020 15:45:33 +0100
Subject: [PATCH] Enable verbose output by default, and convert timestamps to a
 human-friendly format

---
 tools/itango/start-DS.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/itango/start-DS.sh b/tools/itango/start-DS.sh
index 0afdaf10a..9b5890950 100755
--- a/tools/itango/start-DS.sh
+++ b/tools/itango/start-DS.sh
@@ -38,4 +38,5 @@ else
 fi
 deviceServerPath=${myDir/${HOME}/\/hosthome}
 
-docker exec -it itango python3 ${deviceServerPath}/${runThis} ${instance} ${@}
+# Tango log lines start with a UNIX timestamp. Replace them with the UTC time.
+docker exec -it itango python3 ${deviceServerPath}/${runThis} ${instance} -v ${@} | perl -ne 'use Time::Piece; s/^([0-9]+)/gmtime($1)->strftime("%F %T")/e; print;'
-- 
GitLab