From 846bc6e127f3d1dd17272b87d2c03c2796368242 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 25 Nov 2020 01:21:28 -0500 Subject: [PATCH] Adds logging for waiting git calls --- src/git/git.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/git/git.ts b/src/git/git.ts index bd4072e..244f9eb 100644 --- a/src/git/git.ts +++ b/src/git/git.ts @@ -132,6 +132,7 @@ export async function git(options: GitCommandOptio pendingCommands.set(command, promise); } else { waiting = true; + Logger.debug(`${gitCommand} ${GlyphChars.Dot} waiting...`); } let exception: Error | undefined; @@ -157,7 +158,7 @@ export async function git(options: GitCommandOptio } finally { pendingCommands.delete(command); - const duration = `${Strings.getDurationMilliseconds(start)} ms ${waiting ? '(await) ' : emptyStr}`; + const duration = `${Strings.getDurationMilliseconds(start)} ms ${waiting ? '(waited) ' : emptyStr}`; if (exception !== undefined) { Logger.warn( `[${runOpts.cwd}] Git ${(exception.message || exception.toString() || emptyStr)