From 06e77deeb88a16282f9ae091d1124f90af6a93b5 Mon Sep 17 00:00:00 2001 From: th33xitus Date: Sun, 24 Apr 2022 14:19:09 +0200 Subject: [PATCH] refactor: some tweaks Signed-off-by: Dominik Willner th33xitus@gmail.com --- scripts/utilities.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/utilities.sh b/scripts/utilities.sh index 0e4e842..14041fe 100644 --- a/scripts/utilities.sh +++ b/scripts/utilities.sh @@ -92,17 +92,17 @@ function init_logfile() { function log_info() { local message="${1}" log="${LOGFILE}" - echo -e "$(timestamp) ${message}" | tr -s " " >> "${log}" + echo -e "$(timestamp) [INFO]: ${message}" | tr -s " " >> "${log}" } function log_warning() { local message="${1}" log="${LOGFILE}" - echo -e "$(timestamp) ${message}" | tr -s " " >> "${log}" + echo -e "$(timestamp) [WARN]: ${message}" | tr -s " " >> "${log}" } function log_error() { local message="${1}" log="${LOGFILE}" - echo -e "$(timestamp) ${message}" | tr -s " " >> "${log}" + echo -e "$(timestamp) [ERR]: ${message}" | tr -s " " >> "${log}" } #================================================#