Skip to content

Commit

Permalink
Typos making log output ugly
Browse files Browse the repository at this point in the history
  • Loading branch information
swelljoe committed Jun 11, 2017
1 parent 2f75129 commit b76a199
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions slib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b76a199

Please sign in to comment.