Only use sd_journal_* if we really are outputing to journald

We check that the device and inode numbers are actually the same as the
JOURNAL_STREAM value, instead of just checking that the value exists.

This fixes the logger unit tests
This commit is contained in:
louiz’
2018-01-12 04:03:36 +01:00
parent 25423ffd43
commit 7c8a7176d1
2 changed files with 21 additions and 1 deletions
+1
View File
@@ -9,6 +9,7 @@
*/
#include <memory>
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>