diff --git a/aquadoggo/src/lib.rs b/aquadoggo/src/lib.rs index 2078957f6..64a7191da 100644 --- a/aquadoggo/src/lib.rs +++ b/aquadoggo/src/lib.rs @@ -61,6 +61,9 @@ fn init() { } } +/// Helper method for logging a message directly to standard out or via the `log` crate when any +/// logging level is enabled. We need this as some messages should be always printed, but when any +/// logging level is selected, we want the message to be printed with consistent formatting. fn info_or_print(message: &str) { if log_enabled!(Level::Info) || log_enabled!(Level::Debug) || log_enabled!(Level::Trace) { info!("{message}");