Skip to content

Commit

Permalink
Remove --live flag from the logs tail command (stripe#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjabour-stripe authored May 3, 2021
1 parent 3f086fd commit 3fbf545
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions pkg/cmd/logs/tail.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ type TailCmd struct {
cfg *config.Config
Cmd *cobra.Command
format string
livemode bool
LogFilters *logTailing.LogFilters
noWSS bool
}
Expand Down Expand Up @@ -56,13 +55,6 @@ Acceptable values:
'JSON' - Output logs in JSON format`,
)

tailCmd.Cmd.Flags().BoolVar(
&tailCmd.livemode,
"live",
false,
"[WARNING: experimental] Tail live logs (default: test)",
)

// Log filters
tailCmd.Cmd.Flags().StringSliceVar(
&tailCmd.LogFilters.FilterAccount,
Expand Down Expand Up @@ -142,7 +134,7 @@ func (tailCmd *TailCmd) runTailCmd(cmd *cobra.Command, args []string) error {
return err
}

key, err := tailCmd.cfg.Profile.GetAPIKey(tailCmd.livemode)
key, err := tailCmd.cfg.Profile.GetAPIKey(false)
if err != nil {
return err
}
Expand Down

0 comments on commit 3fbf545

Please sign in to comment.