When biboumi is logging into journald, use sd_journal_send

This makes sure that multi-lines messages are properly parsed as a single
message by journald.

fix #3268
This commit is contained in:
louiz’
2017-09-06 21:30:44 +02:00
parent dabc48b79b
commit 8d99374f1f
3 changed files with 43 additions and 42 deletions
-5
View File
@@ -10,13 +10,8 @@ using namespace std::string_literals;
TEST_CASE("Basic logging")
{
#ifdef SYSTEMD_FOUND
const std::string debug_header = "<7>";
const std::string error_header = "<3>";
#else
const std::string debug_header = "[DEBUG]: ";
const std::string error_header = "[ERROR]: ";
#endif
Logger::instance().reset();
GIVEN("A logger with log_level 0")
{