Revert syslog change in dhcp_mon disparity (#12425)

Why I did it
Revert change in syslog such that it does not utilize c++ string

How I did it
Code change

How to verify it
Which release branch to backport (provide reason below if selected)
 201811
 201911
 202006
 202012
 202106
 202111
 202205
Description for the changelog
Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)
This commit is contained in:
Zain Budhwani 2022-10-19 19:23:11 -07:00 committed by GitHub
parent 041d50224e
commit 7c5e4e2b87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,7 +100,7 @@ static void check_dhcp_relay_health(dhcp_mon_state_t *state_data)
if (++state_data->count > dhcp_unhealthy_max_count) {
auto duration = state_data->count * window_interval_sec;
std::string vlan(context->intf);
syslog(LOG_ALERT, state_data->msg, duration, vlan);
syslog(LOG_ALERT, state_data->msg, duration, context->intf);
if (state_data->check_type == DHCP_MON_CHECK_POSITIVE) {
event_params_t params = {
{ "vlan", vlan },