Skip to content

Commit

Permalink
enhance: add warning log for load balancing strategy without dns scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
bojand committed Feb 13, 2021
1 parent a9012d2 commit 67fd70b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/ghz/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,10 @@ func main() {
options = append(options, runner.WithLogger(logger))
}

if isLBStrategySet && cfg.Host != "" && !strings.HasPrefix(cfg.Host, "dns:///") {
logger.Warn("Load balancing strategy set without using DNS (dns:///) scheme. Strategy: %v. Host: %+v.", cfg.LBStrategy, cfg.Host)
}

if logger != nil {
logger.Debugw("Start Run", "config", cfg)
}
Expand Down

0 comments on commit 67fd70b

Please sign in to comment.