Skip to content

Commit

Permalink
Fix check for logs-outputflag
Browse files Browse the repository at this point in the history
  • Loading branch information
nocturnalastro committed Oct 18, 2023
1 parent 91e35cc commit bc57c9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var collectCmd = &cobra.Command{
utils.IfErrorExitOrPanic(err)

for _, c := range collectorNames {
if c == collectors.LogsCollectorName && logsOutputFile == "" {
if (c == collectors.LogsCollectorName || c == runner.All) && logsOutputFile == "" {
utils.IfErrorExitOrPanic(utils.NewMissingInputError(
errors.New("if Logs collector is selected you must also provide a log output file")),
)
Expand Down

0 comments on commit bc57c9b

Please sign in to comment.