summaryrefslogtreecommitdiff
path: root/meta-ibs/meta-cp2-5422/recipes-phosphor/interfaces/bmcweb/0019-add-smtp-logging.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-ibs/meta-cp2-5422/recipes-phosphor/interfaces/bmcweb/0019-add-smtp-logging.patch')
-rw-r--r--meta-ibs/meta-cp2-5422/recipes-phosphor/interfaces/bmcweb/0019-add-smtp-logging.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-ibs/meta-cp2-5422/recipes-phosphor/interfaces/bmcweb/0019-add-smtp-logging.patch b/meta-ibs/meta-cp2-5422/recipes-phosphor/interfaces/bmcweb/0019-add-smtp-logging.patch
new file mode 100644
index 0000000000..ea77f73844
--- /dev/null
+++ b/meta-ibs/meta-cp2-5422/recipes-phosphor/interfaces/bmcweb/0019-add-smtp-logging.patch
@@ -0,0 +1,29 @@
+From 20d0e08bebfb7d4f5001413ce512cf6a98ecef71 Mon Sep 17 00:00:00 2001
+From: claiff <claiff@mail.ru>
+Date: Fri, 23 Sep 2022 16:18:09 +0300
+Subject: [PATCH] add smtp logging
+
+---
+ .../include/registries/openbmc_message_registry.hpp | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+diff --git a/redfish-core/include/registries/openbmc_message_registry.hpp b/redfish-core/include/registries/openbmc_message_registry.hpp
+index 33058a80..7dea3fac 100644
+--- a/redfish-core/include/registries/openbmc_message_registry.hpp
++++ b/redfish-core/include/registries/openbmc_message_registry.hpp
+@@ -2170,6 +2170,15 @@ constexpr std::array registry = {
+ {"string"},
+ "None.",
+ }},
++ MessageEntry{"SMTPError",
++ {
++ "Special error SMTP",
++ "SMTP manager error in method: %1, with message: \"%2\"",
++ "Critical",
++ 2,
++ {"string", "string"},
++ "None.",
++ }},
+ MessageEntry{"SparingRedundancyDegraded",
+ {
+ "Indicates the sparing redundancy state is degraded.",