tracing on add_table

This commit is contained in:
filipriec
2025-04-23 11:02:17 +02:00
parent 6fa8b06063
commit 8c312bc163
4 changed files with 75 additions and 0 deletions

View File

@@ -21,5 +21,6 @@ tokio = { version = "1.44.2", features = ["full", "macros"] }
toml = "0.8.20"
tonic = "0.13.0"
tracing = "0.1.41"
tracing-subscriber = "0.3.19"
unicode-segmentation = "1.12.0"
unicode-width = "0.2.0"

View File

@@ -2,9 +2,12 @@
use client::run_ui;
use dotenvy::dotenv;
use anyhow::Result;
use tracing_subscriber;
#[tokio::main]
async fn main() -> Result<()> {
tracing_subscriber::fmt::init();
dotenv().ok();
run_ui().await
}

View File

@@ -9,6 +9,7 @@ use common::proto::multieko2::table_definition::{
ColumnDefinition as ProtoColumnDefinition,
TableLink as ProtoTableLink,
};
use tracing::debug;
/// Handles the logic for adding a column when the "Add" button is activated.
///
@@ -172,6 +173,8 @@ pub async fn handle_save_table_action(
profile_name: add_table_state.profile_name.clone(),
};
debug!("Sending PostTableDefinitionRequest: {:?}", request);
// --- Call gRPC Service ---
match grpc_client.post_table_definition(request).await {
Ok(response) => {