Skip to content

Commit

Permalink
Merge pull request #308 from codyps/merge-274
Browse files Browse the repository at this point in the history
Merge #274
  • Loading branch information
codyps authored May 2, 2024
2 parents cca26b9 + 0ae5368 commit aa19581
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,8 @@ use log::warn;
use systemd::{journal, sd_journal_log};

fn main() {
use systemd::journal;
journal::print(1, &format!("Rust can talk to the journal: {:?}",
4));
journal::send(["CODE_FILE=HI", "CODE_LINE=1213", "CODE_FUNCTION=LIES"]);
journal::print(1, &format!("Rust can talk to the journal: {:?}", 4));
journal::send(&["CODE_FILE=HI", "CODE_LINE=1213", "CODE_FUNCTION=LIES"]);
journal::JournalLog::init().unwrap();
warn!("HI");
sd_journal_log!(4, "HI {:?}", 2);
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#![cfg_attr(feature = "unstable-doc-cfg", feature(doc_cfg))]
#![warn(rust_2018_idioms)]

#[cfg(all(feature = "journal", doctest))]
doc_comment::doctest!("../README.md", readme);

extern crate libsystemd_sys as ffi;

/*
Expand Down
3 changes: 0 additions & 3 deletions tests/readme.rs

This file was deleted.

0 comments on commit aa19581

Please sign in to comment.