Encapsulate log::Level so counter macro users don't need to use it

This commit is contained in:
Michael Vines
2019-02-25 19:41:22 -08:00
committed by Grimes
parent 5f5725a4ea
commit 897279eddb
16 changed files with 4 additions and 17 deletions

View File

@ -55,10 +55,10 @@ macro_rules! inc_new_counter {
#[macro_export]
macro_rules! inc_new_counter_info {
($name:expr, $count:expr) => {{
inc_new_counter!($name, $count, Level::Info, 0);
inc_new_counter!($name, $count, log::Level::Info, 0);
}};
($name:expr, $count:expr, $lograte:expr) => {{
inc_new_counter!($name, $count, Level::Info, $lograte);
inc_new_counter!($name, $count, log::Level::Info, $lograte);
}};
}