diff --git a/agent/agent.go b/agent/agent.go index 0a68cb7bc..0582e91e1 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -72,8 +72,11 @@ func (a *Agent) CanStart() error { if err != nil { return errors.WithMessage(err, "get mongo version") } + if err := pbm.FeatureSupport(ver).PBMSupport(); err != nil { + a.log.Warning("", "", "", primitive.Timestamp{}, "WARNING: %v", err) + } - return pbm.FeatureSupport(ver).PBMSupport() + return nil } // Start starts listening the commands stream. diff --git a/cli/cli.go b/cli/cli.go index 8b1fe760a..b36480c1d 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -359,7 +359,7 @@ func Main() { stdlog.Fatalf("get mongo version: %v", err) } if err := pbm.FeatureSupport(ver).PBMSupport(); err != nil { - stdlog.Fatal(err.Error()) + fmt.Fprintf(os.Stderr, "WARNING: %v\n", err) } }