Skip to content

Commit

Permalink
fix: log_verb and log_info should print to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
adoyle-h committed Jun 24, 2023
1 parent a2aa141 commit 4228b11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bash/log.bash
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ log_info() {
local tag=$1
shift 1
local msg="$*"
printf "[%s][INFO][$tag] %s\n" "$(date +"%Y-%m-%d %H:%M:%S")" "$msg" | tee -a "$ONE_LOG_FILE"
printf "[%s][INFO][$tag] %s\n" "$(date +"%Y-%m-%d %H:%M:%S")" "$msg" | tee -a "$ONE_LOG_FILE" >&2
}

log_verb() {
local tag=$1
shift 1
local msg="$*"
printf "[%s][VERB][$tag] %s\n" "$(date +"%Y-%m-%d %H:%M:%S")" "$msg" | tee -a "$ONE_LOG_FILE"
printf "[%s][VERB][$tag] %s\n" "$(date +"%Y-%m-%d %H:%M:%S")" "$msg" | tee -a "$ONE_LOG_FILE" >&2
}

0 comments on commit 4228b11

Please sign in to comment.