From 5e07f7cfc3292f4c185a570546e449b096056da7 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Sat, 16 Jun 2007 22:23:53 +0000 Subject: scripts/functions is responsible for initiating the log file. Users of the log facility are in charge to use, move, delete this log file, now. --- scripts/functions | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts/functions') diff --git a/scripts/functions b/scripts/functions index e14cf35c..d66fe22e 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 -- cgit v1.2.3