#pragma once #include "logging.hpp" #include <sdbusplus/unpack_properties.hpp> namespace redfish { namespace dbus_utils { struct UnpackErrorPrinter { void operator()(const sdbusplus::UnpackErrorReason reason, const std::string& property) const noexcept { BMCWEB_LOG_DEBUG << "DBUS property error in property: " << property << ", reason: " << static_cast< std::underlying_type_t<sdbusplus::UnpackErrorReason>>( reason); } }; } // namespace dbus_utils } // namespace redfish