Use the log create instead of println

This commit is contained in:
Slatian
2025-02-09 15:11:17 +01:00
parent 2aae2d6626
commit d902dae35d
6 changed files with 84 additions and 40 deletions

33
Cargo.lock generated
View File

@ -496,18 +496,20 @@ dependencies = [
[[package]]
name = "echoip-slatecave"
version = "1.5.2"
version = "1.5.3"
dependencies = [
"axum",
"axum-client-ip",
"axum-extra",
"clap",
"env_logger",
"governor",
"hickory-proto",
"hickory-resolver",
"http 1.2.0",
"idna",
"lib-humus",
"log",
"maxminddb",
"mime",
"parking_lot",
@ -532,6 +534,29 @@ dependencies = [
"syn",
]
[[package]]
name = "env_filter"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "186e05a59d4c50738528153b83b0b0194d3a29507dfec16eccd4b342903397d0"
dependencies = [
"log",
"regex",
]
[[package]]
name = "env_logger"
version = "0.11.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dcaee3d8e3cfc3fd92428d477bc97fc29ec8716d180c0d74c643bb26166660e0"
dependencies = [
"anstream",
"anstyle",
"env_filter",
"humantime",
"log",
]
[[package]]
name = "equivalent"
version = "1.0.1"
@ -888,6 +913,12 @@ dependencies = [
"libm",
]
[[package]]
name = "humantime"
version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
[[package]]
name = "hyper"
version = "1.6.0"