diff options
Diffstat (limited to 'phosphor-logging/log.hpp')
-rw-r--r-- | phosphor-logging/log.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phosphor-logging/log.hpp b/phosphor-logging/log.hpp index e20605b..673848c 100644 --- a/phosphor-logging/log.hpp +++ b/phosphor-logging/log.hpp @@ -18,6 +18,7 @@ #include <systemd/sd-journal.h> +#include <phosphor-logging/sdjournal.hpp> #include <sdbusplus/server/transaction.hpp> #include <tuple> #include <type_traits> @@ -99,7 +100,7 @@ template <typename T, size_t... I> void helper_log(T&& e, std::integer_sequence<size_t, I...>) { // https://www.freedesktop.org/software/systemd/man/sd_journal_print.html - sd_journal_send(std::get<I>(std::forward<T>(e))..., NULL); + sdjournal_ptr->journal_send(std::get<I>(std::forward<T>(e))..., NULL); } /** @fn details::log() |