chiark / gitweb /
log: make internal log api log directly to the journal
[elogind.git] / src / journal / test-journal.c
index 45ced12b46ef3ca89e8278003c10c8fca4399f0f..a023509b703e491e61e75313a01ee9155f5e6431 100644 (file)
@@ -22,6 +22,8 @@
 #include <fcntl.h>
 #include <unistd.h>
 
+#include <systemd/sd-journal.h>
+
 #include "journal-file.h"
 #include "log.h"
 
@@ -112,5 +114,7 @@ int main(int argc, char *argv[]) {
 
         journal_directory_vacuum(".", 3000000, 0);
 
+        log_error("Exiting...");
+
         return 0;
 }