Skip to content

Commit 463b4bb

Browse files
authored
Merge pull request #3376 from BohuTANG/dev-remove-env-logger-3365
ISSUE-3365: Remove env_logger
2 parents e587ac1 + 4d99681 commit 463b4bb

File tree

6 files changed

+1
-25
lines changed

6 files changed

+1
-25
lines changed

Cargo.lock

+1-17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/clickhouse-srv/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,4 @@ version = "0.3.0"
7070
optional = true
7171

7272
[dev-dependencies]
73-
env_logger = "0.9.0"
7473
rand = "0.8.4"

common/clickhouse-srv/examples/simple.rs

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ extern crate common_clickhouse_srv;
3939
#[tokio::main]
4040
async fn main() -> std::result::Result<(), Box<dyn Error>> {
4141
env::set_var("RUST_LOG", "clickhouse_srv=debug");
42-
env_logger::init();
4342
let host_port = "127.0.0.1:9000";
4443

4544
// Note that this is the Tokio TcpListener, which is fully async.

common/meta/embedded/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ common-meta-api = {path = "../api" }
2121
common-meta-raft-store = {path = "../raft-store" }
2222
common-meta-sled-store = {path = "../sled-store" }
2323
common-meta-types = {path = "../types" }
24-
common-planners = {path = "../../planners" }
2524
common-tracing = {path = "../../tracing" }
2625

2726

query/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ crossbeam = "0.8.1"
7171
crossbeam-queue = "0.3.2"
7272
ctrlc = { version = "3.2.1", features = ["termination"] }
7373
dyn-clone = "1.0.4"
74-
env_logger = "0.9.0"
7574
futures = "0.3.18"
7675
headers = "0.3.5"
7776
hyper = "0.14.15"

query/src/bin/databend-query.rs

-4
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ async fn main(_global_tracker: Arc<RuntimeTracker>) -> common_exception::Result<
5353
MetaEmbedded::init_global_meta_store(conf.meta.meta_embedded_dir.clone()).await?;
5454
}
5555

56-
env_logger::Builder::from_env(
57-
env_logger::Env::default().default_filter_or(conf.log.log_level.to_lowercase().as_str()),
58-
)
59-
.init();
6056
let _guards = init_tracing_with_file(
6157
"databend-query",
6258
conf.log.log_dir.as_str(),

0 commit comments

Comments
 (0)