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"); }