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