Skip to content

Commit

Permalink
feat: daemon prints instance list from api in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Z-a-r-a-k-i committed May 16, 2020
1 parent c6b12f5 commit 3b4488b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go/pkg/pwagent/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ func Daemon(ctx context.Context, cli *client.Client, apiClient *pwapi.HTTPClient

func runOnce(ctx context.Context, cli *client.Client, apiClient *pwapi.HTTPClient, opts Opts) error {
instances, err := apiClient.AgentListInstances(&pwapi.AgentListInstances_Input{AgentName: opts.Name})
opts.Logger.Debug("api response", zap.Any("instances", instances.GetInstances()))
if err != nil {
return errcode.TODO.Wrap(err)
}
Expand Down

0 comments on commit 3b4488b

Please sign in to comment.