This is an automated email from the ASF dual-hosted git repository.

gkoszyk pushed a commit to branch io_uring_tpc
in repository https://gitbox.apache.org/repos/asf/iggy.git


The following commit(s) were added to refs/heads/io_uring_tpc by this push:
     new b53c272e feat(io_uring): remove tokio console build feature (#2192)
b53c272e is described below

commit b53c272eedac5c74504a53aa9b2c5c8518b3578c
Author: Hubert Gruszecki <[email protected]>
AuthorDate: Tue Sep 23 12:25:48 2025 +0200

    feat(io_uring): remove tokio console build feature (#2192)
---
 core/server/src/log/mod.rs           |  5 ----
 core/server/src/log/tokio_console.rs | 53 ------------------------------------
 justfile                             |  3 --
 3 files changed, 61 deletions(-)

diff --git a/core/server/src/log/mod.rs b/core/server/src/log/mod.rs
index 186709cc..2af4bb33 100644
--- a/core/server/src/log/mod.rs
+++ b/core/server/src/log/mod.rs
@@ -15,9 +15,4 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-
-#[cfg(not(feature = "tokio-console"))]
 pub mod logger;
-
-#[cfg(feature = "tokio-console")]
-pub mod tokio_console;
diff --git a/core/server/src/log/tokio_console.rs 
b/core/server/src/log/tokio_console.rs
deleted file mode 100644
index 1e190be3..00000000
--- a/core/server/src/log/tokio_console.rs
+++ /dev/null
@@ -1,53 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-use crate::configs::server::TelemetryConfig;
-use crate::configs::system::LoggingConfig;
-use crate::server_error::ServerError;
-use tracing_subscriber::prelude::*;
-
-pub struct Logging {}
-
-impl Logging {
-    pub fn new(_: TelemetryConfig) -> Self {
-        Self {}
-    }
-
-    pub fn early_init(&mut self) {
-        let console_layer = console_subscriber::spawn();
-
-        let subscriber = tracing_subscriber::registry().with(console_layer);
-
-        tracing::subscriber::set_global_default(subscriber)
-            .expect("Setting global default subscriber failed");
-    }
-
-    pub fn late_init(
-        &mut self,
-        _base_directory: String,
-        _config: &LoggingConfig,
-    ) -> Result<(), ServerError> {
-        Ok(())
-    }
-}
-
-impl Default for Logging {
-    fn default() -> Self {
-        Self::new(TelemetryConfig::default())
-    }
-}
diff --git a/justfile b/justfile
index a7d9f1ee..7b7a14b9 100644
--- a/justfile
+++ b/justfile
@@ -51,9 +51,6 @@ nextests TEST: build
 server:
   cargo run --bin iggy-server
 
-build-tokio-console:
-  RUSTFLAGS="--cfg tokio_unstable" cargo build --release --features 
tokio-console
-
 run-benches:
   ./scripts/run-benches.sh
 

Reply via email to