openbmc.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Can't Call BMCweb/JournalEventLogEntryCollection function
@ 2020-12-04  1:24 Xiaochao Ma (马小超)
  0 siblings, 0 replies; only message in thread
From: Xiaochao Ma (马小超) @ 2020-12-04  1:24 UTC (permalink / raw)
  To: openbmc

Hi all

    I tested the JournalEventLogEntryCollection function in the bmcweb module. I found it unexpectedly that I couldn't use the resfish url to call it.

    No matter what I change the macro definition ‘BMCWEB_ENABLE_REDFISH_DBUS_LOG_ENTRIES’, the DBusEventLogEntryCollection function is always called.



The bmcweb -- redfish-core/include/redfish.hpp:


#ifndef BMCWEB_ENABLE_REDFISH_DBUS_LOG_ENTRIES
nodes.emplace_back(
std::make_unique<JournalEventLogEntryCollection>(app));
nodes.emplace_back(std::make_unique<JournalEventLogEntry>(app));
nodes.emplace_back(std::make_unique<JournalEventLogClear>(app));
#endif

.

.

.

#ifdef BMCWEB_ENABLE_REDFISH_DBUS_LOG_ENTRIES
nodes.emplace_back(std::make_unique<DBusLogServiceActionsClear>(app));
nodes.emplace_back(std::make_unique<DBusEventLogEntryCollection>(app));
nodes.emplace_back(std::make_unique<DBusEventLogEntry>(app));
#endif


    I modify the macro definition by modifying bmcweb/meson_options.txt .


option('redfish-dbus-log', type : 'feature', value : 'disabled', description : 'Enable DBUS log service transactions through Redfish.....

    Even if I write this definition as'disable' in meta-inspur/recipe-phosphor/bmcweb/...bbappend, the JournalEventLogEntryCollection cannot be called.


Are there other configurations that will affect it?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-04  1:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-04  1:24 Can't Call BMCweb/JournalEventLogEntryCollection function Xiaochao Ma (马小超)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).