Skip to content

Commit

Permalink
Merge pull request #2005 from vishalkuo/feature/update-log-message
Browse files Browse the repository at this point in the history
Fix log message in statsd output
  • Loading branch information
mstoykov authored May 14, 2021
2 parents 29d55e2 + 1cc4c31 commit daca27c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func (c *rootCommand) waitRemoteLogger() {
func (c *rootCommand) rootCmdPersistentFlagSet() *pflag.FlagSet {
flags := pflag.NewFlagSet("", pflag.ContinueOnError)
// TODO: figure out a better way to handle the CLI flags - global variables are not very testable... :/
flags.BoolVarP(&c.verbose, "verbose", "v", false, "enable debug logging")
flags.BoolVarP(&c.verbose, "verbose", "v", false, "enable verbose logging")
flags.BoolVarP(&quiet, "quiet", "q", false, "disable progress updates")
flags.BoolVar(&noColor, "no-color", false, "disable colored output")
flags.StringVar(&c.logOutput, "log-output", "stderr",
Expand Down
2 changes: 1 addition & 1 deletion output/statsd/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func (o *Output) flushMetrics() {

if count > 0 {
if errorCount != 0 {
o.logger.Warnf("Couldn't send %d out of %d metrics. Enable debug logging to see individual errors",
o.logger.Warnf("Couldn't send %d out of %d metrics. Enable verbose logging with --verbose to see individual errors",
errorCount, count)
}
if err := o.client.Flush(); err != nil {
Expand Down

0 comments on commit daca27c

Please sign in to comment.