diff options
author | Arne Juul <arnej@yahooinc.com> | 2022-09-21 14:37:12 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahooinc.com> | 2022-09-22 13:51:20 +0000 |
commit | 6e2a680f4def36ec530e0c754f9aa8f906ceb32d (patch) | |
tree | c3f9be49a07a86f140d2142f65ccd6b3b3019b33 /client/go/cmd/deploy/cmd.go | |
parent | 044b53e197f3f4f15a0a302f137cbacb4acb9385 (diff) |
common tracing
Diffstat (limited to 'client/go/cmd/deploy/cmd.go')
-rw-r--r-- | client/go/cmd/deploy/cmd.go | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/client/go/cmd/deploy/cmd.go b/client/go/cmd/deploy/cmd.go index 6c1d560fe79..bf21ffce59f 100644 --- a/client/go/cmd/deploy/cmd.go +++ b/client/go/cmd/deploy/cmd.go @@ -10,6 +10,7 @@ import ( "github.com/spf13/cobra" "github.com/vespa-engine/vespa/client/go/build" + "github.com/vespa-engine/vespa/client/go/trace" "github.com/vespa-engine/vespa/client/go/vespa" ) @@ -73,9 +74,9 @@ func newUploadCmd(opts *Options) *cobra.Command { Run: func(cmd *cobra.Command, args []string) { opts.Command = CmdUpload if opts.Verbose { - AdjustVerbosity(1) + trace.AdjustVerbosity(1) } - PutTrace("upload with", opts, args) + trace.Trace("upload with", opts, args) err := RunUpload(opts, args) if err != nil { fmt.Fprintf(os.Stderr, "%s\n", err.Error()) @@ -95,9 +96,9 @@ func newPrepareCmd(opts *Options) *cobra.Command { Run: func(cmd *cobra.Command, args []string) { opts.Command = CmdPrepare if opts.Verbose { - AdjustVerbosity(1) + trace.AdjustVerbosity(1) } - PutTrace("prepare with", opts, args) + trace.Trace("prepare with", opts, args) err := RunPrepare(opts, args) if err != nil { fmt.Fprintf(os.Stderr, "%s\n", err.Error()) @@ -116,9 +117,9 @@ func newActivateCmd(opts *Options) *cobra.Command { Run: func(cmd *cobra.Command, args []string) { opts.Command = CmdActivate if opts.Verbose { - AdjustVerbosity(1) + trace.AdjustVerbosity(1) } - PutTrace("activate with", opts, args) + trace.Trace("activate with", opts, args) err := RunActivate(opts, args) if err != nil { fmt.Fprintf(os.Stderr, "%s\n", err.Error()) @@ -137,9 +138,9 @@ func newFetchCmd(opts *Options) *cobra.Command { Run: func(cmd *cobra.Command, args []string) { opts.Command = CmdFetch if opts.Verbose { - AdjustVerbosity(1) + trace.AdjustVerbosity(1) } - PutTrace("fetch with", opts, args) + trace.Trace("fetch with", opts, args) err := RunFetch(opts, args) if err != nil { fmt.Fprintf(os.Stderr, "%s\n", err.Error()) |