summaryrefslogtreecommitdiffstats
path: root/src/actions.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions.hpp')
-rw-r--r--src/actions.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/actions.hpp b/src/actions.hpp
index e1f53ad..e5269d1 100644
--- a/src/actions.hpp
+++ b/src/actions.hpp
@@ -13,6 +13,14 @@ namespace action
using namespace phosphor::logging;
+/**
+ * @brief An action to log an error with the given message
+ *
+ * @param[in] msg - The message to log
+ *
+ * @return Lambda function
+ * A lambda function to perform the log_error function
+ */
inline auto log_error(const char* msg)
{
return [=](auto&, auto&)
OpenPOWER on IntegriCloud