Skip to content

Commit

Permalink
log: 更新版本
Browse files Browse the repository at this point in the history
  • Loading branch information
icycrystal4 committed Nov 14, 2023
1 parent 1ec5968 commit 90fa23f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion log/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"

[dependencies]
# 版本号指定详见https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html
elog = { package = "log", version = "=0.4.17" }
elog = { package = "log", version = "=0.4.20" }
log4rs = { version = "1.0.0", features = ["gzip"] }

[features]
Expand Down
4 changes: 2 additions & 2 deletions log/src/enable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub fn private_api_log(
level: Level,
&(target, module_path, file, line): &(&str, &'static str, &'static str, u32),
) {
log::__private_api_log(args, level, &(target, module_path, file, line), None);
log::__private_api::log(args, level, &(target, module_path, file), line, None);
}
#[macro_export]
macro_rules! log_enabled {
Expand All @@ -58,7 +58,7 @@ macro_rules! log_enabled {
}
#[inline]
pub fn private_api_enabled(level: Level, target: &str) -> bool {
log::__private_api_enabled(level, target)
log::__private_api::enabled(level, target)
}

use elog::LevelFilter;
Expand Down

0 comments on commit 90fa23f

Please sign in to comment.