Skip to content

Commit

Permalink
Some more positional printf
Browse files Browse the repository at this point in the history
  • Loading branch information
swelljoe committed May 26, 2017
1 parent d280aaf commit c85956f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ log() {
if [ "$log_level_stdout" -le "$log_level_int" ]; then
# STDOUT
today=$(date +"%Y-%m-%d %H:%M:%S %Z")
printf "${log_color}[${today}] [${log_level}] ${log_text} ${LOG_DEFAULT_COLOR}\n";
printf "%s[%s] [%s] %s%s\n" "$log_color" "$today" "$log_levvel" "$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 Down

0 comments on commit c85956f

Please sign in to comment.