From 57c5ff5db3d2d58702fe8c3f2a59a8c9137ce1dc Mon Sep 17 00:00:00 2001 From: steve-chavez Date: Tue, 23 Dec 2025 13:22:22 -0500 Subject: [PATCH] nix: show wait time for fixture loading --- nix/tools/withTools.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nix/tools/withTools.nix b/nix/tools/withTools.nix index e61ad5c76..3ab5aa664 100644 --- a/nix/tools/withTools.nix +++ b/nix/tools/withTools.nix @@ -132,9 +132,11 @@ let fi if test "$_arg_fixtures"; then - log "Loading fixtures under the postgres role..." + load_start=$SECONDS + >&2 printf "${commandName}: Loading fixtures under the postgres role..." psql -U postgres -v PGUSER="$PGUSER" -v ON_ERROR_STOP=1 -f "$_arg_fixtures" >> "$setuplog" - log "Done. Running command..." + load_end=$((SECONDS - load_start)) + >&2 printf " done in %ss. Running command...\n" "$load_end" fi ("$_arg_command" "''${_arg_leftovers[@]}")