Move error msg for trying wildcard into debug only
My logs are effectively full of this message, hiding out
other useful messages because we run a lot of OEM traffic. Also,
until the daemon fails to find the command via wildcard, it's not
really an error worth reporting in most cases.
Change-Id: Id6674f3e9a2f237de6bd37d6c9f89931a99d0951
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/ipmid.cpp b/ipmid.cpp
index f6ab2fd..f06adc5 100644
--- a/ipmid.cpp
+++ b/ipmid.cpp
@@ -194,8 +194,11 @@
auto iter = g_ipmid_router_map.find(std::make_pair(netfn, cmd));
if(iter == g_ipmid_router_map.end())
{
+ /* By default should only print on failure to find wildcard command. */
+#ifdef __IPMI_DEBUG__
fprintf(stderr, "No registered handlers for NetFn:[0x%X], Cmd:[0x%X]"
" trying Wilcard implementation \n",netfn, cmd);
+#endif
// Now that we did not find any specific [NetFn,Cmd], tuple, check for
// NetFn, WildCard command present.