Skip to content

Commit

Permalink
Changed debug flag to deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
jmwilliams89 committed Nov 16, 2021
1 parent 7843240 commit ab5ee8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added agent log file rotation [PR488](https://github.com/observIQ/stanza/pull/488)
- Added flags `--max_log_size`, `--max_log_age`, and `--max_log_backups` [PR488](https://github.com/observIQ/stanza/pull/488)

### Removed
### Changed

- Replaced `--debug` flag with a more explicit `--log_level` flag [PR488](https://github.com/observIQ/stanza/pull/488)
- Deprecated the `--debug` flag in favor of the `--log_level` flag [PR488](https://github.com/observIQ/stanza/pull/488)

## 1.3.0

Expand Down
2 changes: 2 additions & 0 deletions cmd/stanza/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ type RootFlags struct {
MaxLogSize int
MaxLogBackups int
MaxLogAge int
Debug bool
}

// NewRootCmd will return a root level command
Expand All @@ -55,6 +56,7 @@ func NewRootCmd() *cobra.Command {
rootFlagSet.IntVar(&rootFlags.MaxLogSize, "max_log_size", 10, "sets the maximum size of agent log files in MB before rotating")
rootFlagSet.IntVar(&rootFlags.MaxLogBackups, "max_log_backups", 5, "sets the maximum number of rotated log files to retain")
rootFlagSet.IntVar(&rootFlags.MaxLogAge, "max_log_age", 7, "sets the maximum number of days to retain a rotated log file")
rootFlagSet.BoolVar(&rootFlags.Debug, "debug", false, "debug logging flag - deprecated")

rootFlagSet.StringSliceVarP(&rootFlags.ConfigFiles, "config", "c", []string{defaultConfig()}, "path to a config file")
rootFlagSet.StringVar(&rootFlags.PluginDir, "plugin_dir", defaultPluginDir(), "path to the plugin directory")
Expand Down

0 comments on commit ab5ee8a

Please sign in to comment.