Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Commit

Permalink
ensure: only trace if verbose flag is set
Browse files Browse the repository at this point in the history
  • Loading branch information
sdboyer committed Dec 29, 2016
1 parent 3c40822 commit af226cb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions ensure.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,13 @@ func runEnsure(args []string) error {
}

params := gps.SolveParameters{
RootDir: p.absroot,
Manifest: p.m,
Lock: p.l,
Trace: true,
TraceLogger: log.New(os.Stdout, "", 0),
RootDir: p.absroot,
Manifest: p.m,
Lock: p.l,
}
if *verbose {
params.Trace = true
params.TraceLogger = log.New(os.Stderr, "", 0)
}

params.RootPackageTree, err = gps.ListPackages(p.absroot, string(p.importroot))
Expand Down

0 comments on commit af226cb

Please sign in to comment.