From b1b4845fe738a71d20689905b006968d8cb5857e Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Fri, 14 Jun 2019 12:32:10 -0400 Subject: [PATCH] Fixes argument logging --- src/git/gitService.ts | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/git/gitService.ts b/src/git/gitService.ts index 0e4ca5a..e3665c2 100644 --- a/src/git/gitService.ts +++ b/src/git/gitService.ts @@ -509,7 +509,11 @@ export class GitService implements Disposable { } @gate() - @log() + @log({ + args: { + 0: (repos?: Repository[]) => (repos === undefined ? false : repos.map(r => r.name).join(', ')) + } + }) async fetchAll(repositories?: Repository[]) { if (repositories === undefined) { repositories = await this.getOrderedRepositories(); @@ -532,7 +536,11 @@ export class GitService implements Disposable { } @gate() - @log() + @log({ + args: { + 0: (repos?: Repository[]) => (repos === undefined ? false : repos.map(r => r.name).join(', ')) + } + }) async pullAll(repositories?: Repository[]) { if (repositories === undefined) { repositories = await this.getOrderedRepositories(); @@ -555,7 +563,11 @@ export class GitService implements Disposable { } @gate() - @log() + @log({ + args: { + 0: (repos?: Repository[]) => (repos === undefined ? false : repos.map(r => r.name).join(', ')) + } + }) async pushAll(repositories?: Repository[]) { if (repositories === undefined) { repositories = await this.getOrderedRepositories();