Skip to content

Commit

Permalink
[ADD] debug
Browse files Browse the repository at this point in the history
  • Loading branch information
nhaquet-w6d committed Nov 13, 2023
1 parent c33f74b commit 67b43e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/controller/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand Down Expand Up @@ -46,6 +47,7 @@ async fn extract_sync_id(
Ok(ret)
}

#[derive(Debug)]
pub enum SyncMode {
User(Vec<(String, Value)>),
Project(Vec<String>),
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 67b43e2

Please sign in to comment.