Skip to content

Commit f4aefba

Browse files
authored
[Mux] Fix repeating logs in case of tunnel creation fail (#1610)
* Fix repeating logs in case of tunnel creation fail
1 parent f4e8245 commit f4aefba

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

orchagent/bufferorch.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ void BufferOrch::doTask()
966966
// ├── buffer queue
967967
// └── buffer pq table
968968

969-
SWSS_LOG_INFO("Handling buffer task");
969+
SWSS_LOG_DEBUG("Handling buffer task");
970970

971971
auto pool_consumer = getExecutor((APP_BUFFER_POOL_TABLE_NAME));
972972
pool_consumer->drain();

orchagent/muxorch.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -793,19 +793,20 @@ bool MuxOrch::handlePeerSwitch(const Request& request)
793793

794794
if (op == SET_COMMAND)
795795
{
796+
mux_peer_switch_ = peer_ip;
797+
796798
// Create P2P tunnel when peer_ip is available.
797799
IpAddresses dst_ips = decap_orch_->getDstIpAddresses(MUX_TUNNEL);
798800
if (!dst_ips.getSize())
799801
{
800-
SWSS_LOG_NOTICE("Mux tunnel not yet created for '%s' peer ip '%s'",
801-
MUX_TUNNEL, peer_ip.to_string().c_str());
802+
SWSS_LOG_INFO("Mux tunnel not yet created for '%s' peer ip '%s'",
803+
MUX_TUNNEL, peer_ip.to_string().c_str());
802804
return false;
803805
}
804806

805807
auto it = dst_ips.getIpAddresses().begin();
806808
const IpAddress& dst_ip = *it;
807809
mux_tunnel_id_ = create_tunnel(&peer_ip, &dst_ip);
808-
mux_peer_switch_ = peer_ip;
809810
SWSS_LOG_NOTICE("Mux peer ip '%s' was added, peer name '%s'",
810811
peer_ip.to_string().c_str(), peer_name.c_str());
811812
}

orchagent/tunneldecaporch.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ IpAddresses TunnelDecapOrch::getDstIpAddresses(std::string tunnelKey)
758758
{
759759
if (tunnelTable.find(tunnelKey) == tunnelTable.end())
760760
{
761-
SWSS_LOG_ERROR("Tunnel not found %s", tunnelKey.c_str());
761+
SWSS_LOG_INFO("Tunnel not found %s", tunnelKey.c_str());
762762
return IpAddresses();
763763
}
764764

0 commit comments

Comments
 (0)