From 050ec2fd1d3a1ffe72b483b76b44943ca2f44bda Mon Sep 17 00:00:00 2001 From: Marcin Siodelski Date: Tue, 28 Nov 2023 12:33:35 +0100 Subject: [PATCH] [#3106] Fixed logging placeholder in HA --- src/hooks/dhcp/high_availability/ha_service.cc | 1 + src/hooks/dhcp/high_availability/tests/ha_config_unittest.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hooks/dhcp/high_availability/ha_service.cc b/src/hooks/dhcp/high_availability/ha_service.cc index c89afdea12..8782b24971 100644 --- a/src/hooks/dhcp/high_availability/ha_service.cc +++ b/src/hooks/dhcp/high_availability/ha_service.cc @@ -2254,6 +2254,7 @@ HAService::asyncSyncLeasesInternal(http::HttpClient& http_client, } catch (const std::exception& ex) { error_message = ex.what(); LOG_ERROR(ha_logger, HA_LEASES_SYNC_FAILED) + .arg(config_->getThisServerName()) .arg(partner_config->getLogLabel()) .arg(error_message); } diff --git a/src/hooks/dhcp/high_availability/tests/ha_config_unittest.cc b/src/hooks/dhcp/high_availability/tests/ha_config_unittest.cc index ddc9c15db8..f00e4c9fc8 100644 --- a/src/hooks/dhcp/high_availability/tests/ha_config_unittest.cc +++ b/src/hooks/dhcp/high_availability/tests/ha_config_unittest.cc @@ -2040,7 +2040,7 @@ TEST_F(HAConfigTest, hubAndSpokeRepeatingThisServerName) { " ]" " }" "]", - "server names must be unique for different relationships"); + "server names must be unique for different relationships: a relationship 'server1' already exists"); }