From 09386c0179a91b141a9dff633fbf68472d4c96c8 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Fri, 28 Jul 2023 11:39:31 +0000 Subject: [PATCH] improve logging --- universal/functions.bash | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/universal/functions.bash b/universal/functions.bash index 448d8b4..88329ab 100644 --- a/universal/functions.bash +++ b/universal/functions.bash @@ -1,7 +1,6 @@ log () { m_time=`date "+%F %T"` - echo $m_time" :: $scriptName :: $scriptVersion :: "$1 - echo $m_time" :: $scriptName :: $scriptVersion :: "$1 >> /config/logs/$scriptName.txt + echo $m_time" :: $scriptName :: $scriptVersion :: "$1 2>&1 | tee -a /config/logs/$scriptName.txt } logfileSetup () {