[channel-mgmt]: Misc fixes for log messge tag.
Fixed wrong log entry tags to list the entries properly.
Tested: Verified it is comming in journalctl logs
Change-Id: I5352f9f87eb43414b4b04335ba43219e452785c6
Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
diff --git a/user_channel/channel_mgmt.cpp b/user_channel/channel_mgmt.cpp
index b56da33..c3994f1 100644
--- a/user_channel/channel_mgmt.cpp
+++ b/user_channel/channel_mgmt.cpp
@@ -142,7 +142,7 @@
if (!isValidChannel(chNum))
{
log<level::ERR>("Invalid channel number.",
- entry("ChannelID=%d", chNum));
+ entry("CHANNEL_ID=%d", chNum));
throw std::invalid_argument("Invalid channel number");
}
@@ -160,7 +160,7 @@
}
}
log<level::ERR>("Invalid channel name.",
- entry("Channel=%s", chName.c_str()));
+ entry("CHANNEL=%s", chName.c_str()));
throw std::invalid_argument("Invalid channel name");
return -1;