Skip to content

Commit

Permalink
Correctly set log_dir default in vtcombo (#15153)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Mason <[email protected]>
  • Loading branch information
vitess-bot[bot] committed Feb 6, 2024
1 parent 020a082 commit ac638e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/cmd/vtcombo/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func run(cmd *cobra.Command, args []string) (err error) {

// vtctld UI requires the cell flag
cmd.Flags().Set("cell", tpb.Cells[0])
if cmd.Flags().Lookup("log_dir") == nil {
if f := cmd.Flags().Lookup("log_dir"); f != nil && !f.Changed {
cmd.Flags().Set("log_dir", "$VTDATAROOT/tmp")
}

Expand Down

0 comments on commit ac638e0

Please sign in to comment.