summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/functions b/scripts/functions
index e14cf35..d66fe22 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -35,6 +35,13 @@ set -o pipefail
# shared is not found
set +o hashall
+# Log policy:
+# - first of all, save stdout so we can see the live logs: fd #6
+exec 6>&1
+# - then point stdout to the log file (temporary for now)
+tmp_log_file="${CT_TOP_DIR}/log.$$"
+exec >>"${tmp_log_file}"
+
# The different log levels:
CT_LOG_LEVEL_ERROR=0
CT_LOG_LEVEL_WARN=1