From 17710e1ecbd36409fa5b14861c025aacf943b6fd Mon Sep 17 00:00:00 2001 From: chrislu Date: Wed, 15 Nov 2023 18:11:35 -0800 Subject: [PATCH] adjust logs --- weed/mq/broker/broker_stats.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/weed/mq/broker/broker_stats.go b/weed/mq/broker/broker_stats.go index eb9246e4a..0cc23837b 100644 --- a/weed/mq/broker/broker_stats.go +++ b/weed/mq/broker/broker_stats.go @@ -31,7 +31,10 @@ func (broker *MessageQueueBroker) BrokerConnectToBalancer(self string) error { } broker.currentBalancer = pb.ServerAddress(brokerBalancer) - glog.V(1).Infof("broker %s found balancer %s", self, brokerBalancer) + glog.V(0).Infof("broker %s found balancer %s", self, brokerBalancer) + if brokerBalancer == "" { + return fmt.Errorf("no balancer found") + } // connect to the lock owner err = pb.WithBrokerGrpcClient(false, brokerBalancer, broker.grpcDialOption, func(client mq_pb.SeaweedMessagingClient) error {