@@ -130,33 +130,38 @@ async fn run_sync(token: &str, page_id: &str, db: &mut SqliteConnection) {
130130 // println!("⏬ {} {}", obj.object_type(), obj.id());
131131 // save_object(&obj, "testdata").await?;
132132 } else {
133- println ! ( "🔁 repeated {} {}" , obj. object_type( ) , obj. id( ) ) ;
133+ eprintln ! ( "➡️ 🔁 repeated {} {}" , obj. object_type( ) , obj. id( ) ) ;
134134 }
135135
136136 match obj {
137137 notion_async_api:: AnyObject :: Block ( block) => {
138- println ! ( "⏬ 🆎 block {} {}" , block. id( ) , block. block_type) ;
138+ println ! (
139+ "✔ {:8} {} {}" ,
140+ block. object_type( ) ,
141+ block. id( ) ,
142+ block. block_type
143+ ) ;
139144 insert_or_update_block ( db, block) . await . unwrap ( ) ;
140145 }
141146 notion_async_api:: AnyObject :: Page ( page) => {
142- println ! ( "⏬ 📃 page {}" , page. id( ) ) ;
147+ println ! ( "✔ 📃 {:8} {}" , page . object_type ( ) , page. id( ) ) ;
143148 insert_or_update_page ( db, page) . await . unwrap ( ) ;
144149 }
145150 notion_async_api:: AnyObject :: Database ( database) => {
146- println ! ( "⏬ 🗐 database {}" , database. id( ) ) ;
151+ println ! ( "✔ {:8} {}" , database . object_type ( ) , database. id( ) ) ;
147152 insert_or_update_database ( db, database) . await . unwrap ( ) ;
148153 }
149154 notion_async_api:: AnyObject :: User ( user) => {
150- println ! ( "⏬ 👤 user {}" , user. id( ) ) ;
155+ println ! ( "✔️ 👤 {:8} {}" , user . object_type ( ) , user. id( ) ) ;
151156 }
152157 notion_async_api:: AnyObject :: Comment ( comment) => {
153- println ! ( "⏬ 📝 comment {}" , comment. id( ) , ) ;
158+ println ! ( "✔ {:8} {}" , comment . object_type ( ) , comment. id( ) , ) ;
154159 insert_or_update_comment ( db, comment) . await . unwrap ( ) ;
155160 }
156161 } ;
157162 }
158163 Err ( e) => {
159- println ! ( "❌ {e}" ) ;
164+ eprintln ! ( "❌ error {e}" ) ;
160165 }
161166 }
162167 }
0 commit comments