debug: log pull state record keys

Author: Aaron Steven White
Commit 57532779b70b8fe9b5b3e30a68fe09d15c43587d
Parent: 625db4d006
Structural diff unavailable

These commits were pushed via plain git push, so no pre-parsed schemas are available. Install git-remote-cospan and re-push via panproto:// to see scope-level changes, breaking change detection, and semantic diffs.

brew install panproto/tap/git-remote-cospan
1 file changed +9 -1
@@ -307,7 +307,15 @@ async fn dispatch_special_upsert(
307307             row.indexed_at = Utc::now();
308308             // Tangled uses "status" not "state"; fill from raw record if empty
309309             if row.state.is_empty() {
310-                row.state = rec.get("status").and_then(|v| v.as_str()).unwrap_or("").to_string();
310+                let status = rec.get("status").and_then(|v| v.as_str()).unwrap_or("");
311+                tracing::info!(
312+                    collection, did, rkey,
313+                    raw_status = status,
314+                    has_pull = rec.get("pull").is_some(),
315+                    raw_keys = ?rec.as_object().map(|o| o.keys().collect::<Vec<_>>()),
316+                    "pull state record with empty state"
317+                );
318+                row.state = status.to_string();
311319             }
312320             if row.pull_uri.is_empty() {
313321                 row.pull_uri = pull_uri.clone();
cospan · schematic version control on atproto built on AT Protocol