diff options
Diffstat (limited to 'src/actions.hpp')
-rw-r--r-- | src/actions.hpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/actions.hpp b/src/actions.hpp deleted file mode 100644 index e5269d1..0000000 --- a/src/actions.hpp +++ /dev/null @@ -1,35 +0,0 @@ -#pragma once - -#include <phosphor-logging/log.hpp> - -namespace phosphor -{ -namespace dbus -{ -namespace monitoring -{ -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&) - { - log<level::ERR>(msg); - }; -} - -} // namespace action -} // namespace monitoring -} // namespace dbus -} // namespace phosphor |