From 67b43e2b9eb2ea359ecfcedd32ad7d1aabe408f1 Mon Sep 17 00:00:00 2001 From: Nicolas Haquet Date: Mon, 13 Nov 2023 17:41:07 +0100 Subject: [PATCH] [ADD] debug --- src/controller/sync.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controller/sync.rs b/src/controller/sync.rs index 40f6b0e..b7d7d43 100644 --- a/src/controller/sync.rs +++ b/src/controller/sync.rs @@ -8,6 +8,7 @@ use kafka::{ use ory_kratos_client::models::Identity; use serde_json::{json, Value}; use tonic::Request; +use tower::discover; use tracing::{error, log::info}; use crate::{ @@ -46,6 +47,7 @@ async fn extract_sync_id( Ok(ret) } +#[derive(Debug)] pub enum SyncMode { User(Vec<(String, Value)>), Project(Vec), @@ -233,6 +235,7 @@ pub async fn sync( } }; info!("old project: {projects:?}"); + info!("sync mode: {mode:?}"); match mode { SyncMode::Project(data) => { for new_project in data {