commit c17f0562f21255f20b3726659111fbfc7eb415d2 parent 5f8aebaea948433a8daa33a6c86eccbf321eaa47 Author: lash <dev@holbrook.no> Date: Sun, 28 Jul 2024 19:53:36 +0100 Merge branch 'master' into HEAD Diffstat:
A | crier-lib/src/log.rs | | | 21 | +++++++++++++++++++++ |
M | crier-lib/src/rss.rs | | | 1 | + |
2 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/crier-lib/src/log.rs b/crier-lib/src/log.rs @@ -0,0 +1,21 @@ +#[cfg(feature = "logging")] +use env_logger; +pub use log::debug; +pub use log::info; + +pub fn init() { + env_logger::init(); +} + +#[cfg(not(feature = "logging"))] +#[macro_export] +macro_rules! info { + (*) => {}; +} + +#[cfg(not(feature = "logging"))] +#[macro_export] +macro_rules! debug { + (*) => {}; +} + diff --git a/crier-lib/src/rss.rs b/crier-lib/src/rss.rs @@ -6,6 +6,7 @@ use crate::Error; use log::info; use log::debug; + use rss::Channel; use rss::Item; use rss::extension::dublincore::DublinCoreExtension;