We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c338d3 commit bd02edbCopy full SHA for bd02edb
1 file changed
my-no-sql-data-writer/src/my_no_sql_data_writer/execution.rs
@@ -118,14 +118,22 @@ pub async fn bulk_insert_or_replace<
118
return Ok(());
119
}
120
121
+ let mut debug_data = String::new();
122
+
123
let response = flurl
124
.append_path_segment(BULK_CONTROLLER)
125
.append_path_segment("InsertOrReplace")
126
.append_data_sync_period(sync_period)
127
.with_table_name_as_query_param(TEntity::TABLE_NAME)
- .post(serialize_entities_to_body(entities))
128
+ .post_with_debug(serialize_entities_to_body(entities), &mut debug_data)
129
.await?;
130
131
+ if debug_data.len() > 1024 {
132
+ println!("Debug Data: {}", &debug_data[..1024]);
133
+ } else {
134
+ println!("Debug Data: {}", debug_data);
135
+ }
136
137
if is_ok_result(&response) {
138
139
0 commit comments