From b76a199bfc20bf6a13c8a344bd4e08e72a3ced10 Mon Sep 17 00:00:00 2001 From: Joe cooper Date: Sat, 10 Jun 2017 22:51:02 -0500 Subject: [PATCH] Typos making log output ugly --- slib.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/slib.sh b/slib.sh index f468eed..fdb4023 100644 --- a/slib.sh +++ b/slib.sh @@ -163,7 +163,7 @@ log() { if [ "$log_level_stdout" -le "$log_level_int" ]; then # STDOUT today=$(date +"%Y-%m-%d %H:%M:%S %Z") - printf "%s[%s] [%s] %s%s\n" "$log_color" "$today" "$log_levvel" "$log_text" "$LOG_DEFAULT_COLOR"; + printf "%s[%s] [%s] %s%s\n" "$log_color" "$today" "$log_level" "$log_text" "$LOG_DEFAULT_COLOR"; fi # This is all very tricky; figures out a numeric value to compare. eval log_level_log="\$LOG_LEVEL_${LOG_LEVEL_LOG}" @@ -173,7 +173,7 @@ log() { # LOG_PATH minus fancypants colors if [ ! -z "$LOG_PATH" ]; then today=$(date +"%Y-%m-%d %H:%M:%S %Z") - printf "[%s] [%s] %s\n" "$today" "$log_levvel" "$log_text" >> "$LOG_PATH" + printf "[%s] [%s] %s\n" "$today" "$log_level" "$log_text" >> "$LOG_PATH" fi fi @@ -366,7 +366,7 @@ run_ok () { env printf "${GREENBG}[ ${CHECK} ]${NORMAL}\n" return 0 else - log_error "Failed with error: ${res}\n" + log_error "Failed with error: ${res}" env printf "${REDBG}[ ${BALLOT_X} ]${NORMAL}\n" if [ "$RUN_ERRORS_FATAL" ]; then echo