blob: f3575c4e75c66f650e944d724b555b9f440cdc68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <phosphor-logging/lg2.hpp>
#include "phosphor.hpp"
namespace smtp::logger
{
void Phosphor::LogError( std::string const& method, std::string const& message ) const
{
auto join_message = method + ',' + message;
const auto* msg = "OpenBMC.0.1.SMTPError";
lg2::error("SMTP error", "REDFISH_MESSAGE_ID", msg, "REDFISH_MESSAGE_ARGS", join_message);
}
}
|