Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
3 changes: 2 additions & 1 deletion src/meta/binaries/meta/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ pub async fn entry(conf: Config) -> anyhow::Result<()> {
"cluster_name".to_string(),
conf.raft_config.cluster_name.clone(),
);
let _guards = init_logging(&app_name_shuffle, &conf.log, log_labels);
let guards = init_logging(&app_name_shuffle, &conf.log, log_labels);
Box::new(guards).leak();

info!("Databend Meta version: {}", METASRV_COMMIT_VERSION.as_str());
info!(
Expand Down
3 changes: 2 additions & 1 deletion src/meta/binaries/metactl/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,8 @@ async fn main() -> anyhow::Result<()> {
},
..Default::default()
};
let _guards = init_logging("metactl", &log_config, BTreeMap::new());
let guards = init_logging("metactl", &log_config, BTreeMap::new());
Box::new(guards).leak();

match app.command {
Some(ref cmd) => match cmd {
Expand Down
3 changes: 2 additions & 1 deletion src/meta/binaries/metaverifier/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ async fn main() -> Result<()> {
..Default::default()
};

let _guards = init_logging("databend-metaverifier", &log_config, BTreeMap::new());
let guards = init_logging("databend-metaverifier", &log_config, BTreeMap::new());
Box::new(guards).leak();

println!("config: {:?}", config);
if config.grpc_api_address.is_empty() {
Expand Down
3 changes: 2 additions & 1 deletion src/meta/process/src/examples.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,12 @@ impl Default for RaftConfig {
async fn upgrade_09() -> anyhow::Result<()> {
let config = Config::parse();

let _guards = init_logging(
let guards = init_logging(
"databend-meta-upgrade-09",
&LogConfig::default(),
BTreeMap::new(),
);
Box::new(guards).leak();

eprintln!("config: {}", pretty(&config)?);

Expand Down
Loading