Skip to content

Commit

Permalink
json-cache-metrics becomes debug-json-cache-metrics
Browse files Browse the repository at this point in the history
Signed-off-by: Adrien Delorme <[email protected]>
  • Loading branch information
azr committed Dec 6, 2023
1 parent 6a89295 commit 489badb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/buildctl/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ var buildCommand = cli.Command{
Usage: "Overwrite TLS configuration when authenticating with registries, e.g. --registry-auth-tlscontext host=https://myserver:2376,insecure=false,ca=/path/to/my/ca.crt,cert=/path/to/my/cert.crt,key=/path/to/my/key.crt",
},
cli.StringFlag{
Name: "json-cache-metrics",
Name: "debug-json-cache-metrics",
Usage: "Where to output json cache metrics, use 'stdout' or 'stderr' for standard (error) output.",
},
},
Expand Down Expand Up @@ -149,7 +149,7 @@ func openTraceFile(clicontext *cli.Context) (*os.File, error) {
}

func openCacheMetricsFile(clicontext *cli.Context) (*os.File, error) {
switch out := clicontext.String("json-cache-metrics"); out {
switch out := clicontext.String("debug-json-cache-metrics"); out {
case "stdout":
return os.Stdout, nil
case "stderr":
Expand Down

0 comments on commit 489badb

Please sign in to comment.