Skip to content

Commit

Permalink
feat: Timed Verbose Logging (#20)
Browse files Browse the repository at this point in the history
Add a timestamp to each logVerbose timestamp. Useful for getting a sense
of hangs in performance.
  • Loading branch information
nikhilbirmiwal authored Aug 29, 2023
1 parent c86d9f4 commit db398cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scripts/compute_impacted_targets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ ifVerbose() {
}

logIfVerbose() {
ifVerbose echo "$@"
# trunk-ignore(shellcheck/SC2312): Always query date with each echo statement.
ifVerbose echo "$(date -u)" "$@"
}

# NOTE: We cannot assume that the checked out Git repo (e.g. via actions-checkout)
Expand Down

0 comments on commit db398cb

Please sign in to comment.