diff options
author | claiff <claiff@mail.ru> | 2022-09-20 16:05:35 +0300 |
---|---|---|
committer | claiff <claiff@mail.ru> | 2022-09-20 16:05:35 +0300 |
commit | a282ae6418c85db1aae5a2823dd37d56e56e5249 (patch) | |
tree | 00fb2677007f87b5572d088d0421e3075291f8ac /src/logger/phosphor.cpp | |
parent | 7485f26f35c9cfc1489a2e425fee57a2b51059a9 (diff) | |
download | obmc-sila-smtp-a282ae6418c85db1aae5a2823dd37d56e56e5249.tar.xz |
temp
Diffstat (limited to 'src/logger/phosphor.cpp')
-rw-r--r-- | src/logger/phosphor.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/logger/phosphor.cpp b/src/logger/phosphor.cpp index 48bb49e..d3c81b0 100644 --- a/src/logger/phosphor.cpp +++ b/src/logger/phosphor.cpp @@ -1,4 +1,6 @@ #include <phosphor-logging/elog-errors.hpp> +#include <phosphor-logging/elog.hpp> +#include <xyz/openbmc_project/Common/error.hpp> #include "phosphor.hpp" @@ -6,6 +8,8 @@ namespace smtp::logger { void Phosphor::LogError( std::string const& message ) const { - phosphor::logging::log < phosphor::logging::level::ERR >( message.c_str()); + using InternalFailure = + sdbusplus::xyz::openbmc_project::Common::Error::InternalFailure; + phosphor::logging::commit<InternalFailure>(message); } }
\ No newline at end of file |