Skip to content
Closed
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions neqo-common/src/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ pub fn init(level_filter: Option<log::LevelFilter>) {
// TODO: Enable `#[clippy::format_args]` once our MSRV is >= 1.84
macro_rules! qerror {
($($arg:tt)*) => ( {
<<<<<<< Updated upstream
||||||| Stash base
#[cfg(any(test, feature = "bench"))]
=======
#[cfg(debug_assertions)]
>>>>>>> Stashed changes
Comment thread
larseggert marked this conversation as resolved.
Outdated
::neqo_common::log::init(None);
Comment thread
larseggert marked this conversation as resolved.
::log::error!($($arg)*);
} );
Expand All @@ -61,7 +66,12 @@ macro_rules! qerror {
// TODO: Enable `#[clippy::format_args]` once our MSRV is >= 1.84
macro_rules! qwarn {
($($arg:tt)*) => ( {
<<<<<<< Updated upstream
||||||| Stash base
#[cfg(any(test, feature = "bench"))]
=======
#[cfg(debug_assertions)]
>>>>>>> Stashed changes
Comment thread
larseggert marked this conversation as resolved.
Outdated
::neqo_common::log::init(None);
Comment thread
larseggert marked this conversation as resolved.
::log::warn!($($arg)*);
} );
Expand All @@ -70,7 +80,12 @@ macro_rules! qwarn {
// TODO: Enable `#[clippy::format_args]` once our MSRV is >= 1.84
macro_rules! qinfo {
($($arg:tt)*) => ( {
<<<<<<< Updated upstream
||||||| Stash base
#[cfg(any(test, feature = "bench"))]
=======
#[cfg(debug_assertions)]
>>>>>>> Stashed changes
Comment thread
larseggert marked this conversation as resolved.
Outdated
::neqo_common::log::init(None);
Comment thread
larseggert marked this conversation as resolved.
::log::info!($($arg)*);
} );
Expand All @@ -79,7 +94,12 @@ macro_rules! qinfo {
// TODO: Enable `#[clippy::format_args]` once our MSRV is >= 1.84
macro_rules! qdebug {
($($arg:tt)*) => ( {
<<<<<<< Updated upstream
||||||| Stash base
#[cfg(any(test, feature = "bench"))]
=======
#[cfg(debug_assertions)]
>>>>>>> Stashed changes
Comment thread
larseggert marked this conversation as resolved.
Outdated
::neqo_common::log::init(None);
Comment thread
larseggert marked this conversation as resolved.
::log::debug!($($arg)*);
} );
Expand All @@ -88,7 +108,12 @@ macro_rules! qdebug {
// TODO: Enable `#[clippy::format_args]` once our MSRV is >= 1.84
macro_rules! qtrace {
($($arg:tt)*) => ( {
<<<<<<< Updated upstream
||||||| Stash base
#[cfg(any(test, feature = "bench"))]
=======
#[cfg(debug_assertions)]
>>>>>>> Stashed changes
Comment thread
larseggert marked this conversation as resolved.
Outdated
::neqo_common::log::init(None);
Comment thread
larseggert marked this conversation as resolved.
::log::trace!($($arg)*);
} );
Expand Down
Loading