Parakeet is a Rust-based Bluesky AppServer aiming to implement most of the functionality required to support the Bluesky client
appview atproto bluesky rust appserver
66
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(consumer): tweak log levels

Mia 05b9afbb 7d7ac22f

+4 -11
+3 -3
consumer/src/backfill/downloader.rs
··· 84 84 85 85 // has the repo already been downloaded? 86 86 if rc.sismember(DL_DUP_KEY, &did).await.unwrap_or_default() { 87 - tracing::warn!("skipping duplicate repo {did}"); 87 + tracing::info!("skipping duplicate repo {did}"); 88 88 continue; 89 89 } 90 90 ··· 92 92 match db::actor_get_statuses(&mut conn, &did).await { 93 93 Ok(Some((_, state))) => { 94 94 if state == ActorSyncState::Synced || state == ActorSyncState::Processing { 95 - tracing::warn!("skipping duplicate repo {did}"); 95 + tracing::info!("skipping duplicate repo {did}"); 96 96 continue; 97 97 } 98 98 } ··· 206 206 let _ = rc.zadd(BF_REM_KEY, &pds, rem).await; 207 207 let _ = rc.zadd(BF_RESET_KEY, &pds, reset).await; 208 208 } 209 - Ok(_) => tracing::warn!(pds, "got response with no ratelimit headers."), 209 + Ok(_) => tracing::debug!(pds, "got response with no ratelimit headers."), 210 210 Err(e) => { 211 211 tracing::error!(pds, did, "failed to download repo: {e}"); 212 212 continue;
+1 -4
consumer/src/backfill/repo.rs
··· 53 53 54 54 match block { 55 55 CarEntry::Commit(_) => { 56 - tracing::warn!("got commit entry that was not in root") 56 + tracing::debug!("got commit entry that was not in root") 57 57 } 58 58 CarEntry::Record(CarRecordEntry::Known(record)) => { 59 59 if let Some(path) = mst_nodes.remove(&cid) { ··· 169 169 } 170 170 RecordTypes::AppBskyFeedThreadgate(record) => { 171 171 if !at_uri_is_by(&record.post, did) { 172 - tracing::warn!("tried to create a threadgate on a post we don't control!"); 173 172 return Ok(()); 174 173 } 175 174 ··· 194 193 RecordTypes::AppBskyGraphListItem(rec) => { 195 194 let split_aturi = rec.list.rsplitn(4, '/').collect::<Vec<_>>(); 196 195 if did != split_aturi[2] { 197 - // it's also probably a bad idea to log *all* the attempts to do this... 198 - tracing::warn!("tried to create a listitem on a list we don't control!"); 199 196 return Ok(()); 200 197 } 201 198
-4
consumer/src/indexer/mod.rs
··· 640 640 } 641 641 RecordTypes::AppBskyFeedPostgate(record) => { 642 642 if !at_uri_is_by(&record.post, repo) { 643 - tracing::warn!("tried to create a postgate on a post we don't control!"); 644 643 return Ok(()); 645 644 } 646 645 ··· 670 669 } 671 670 RecordTypes::AppBskyFeedThreadgate(record) => { 672 671 if !at_uri_is_by(&record.post, repo) { 673 - tracing::warn!("tried to create a threadgate on a post we don't control!"); 674 672 return Ok(()); 675 673 } 676 674 ··· 710 708 } 711 709 RecordTypes::AppBskyGraphListItem(record) => { 712 710 if !at_uri_is_by(&record.list, repo) { 713 - // it's also probably a bad idea to log *all* the attempts to do this... 714 - tracing::warn!("tried to create a listitem on a list we don't control!"); 715 711 return Ok(()); 716 712 } 717 713