diff --git a/src/lib/profile.ts b/src/lib/profile.ts index 2f867b5..4631d8f 100644 --- a/src/lib/profile.ts +++ b/src/lib/profile.ts @@ -14,6 +14,7 @@ const profileCache: Map = new Map() export async function resolveProfile(identifier: string) { let profile = profileCache.get(identifier) if (profile === undefined) { + console.log(`Resolving doc from slingshot: ${identifier}`) const { did, handle, pds } = await Slingshot.call(blue.microcosm.identity.resolveMiniDoc, { identifier: identifier as AtIdentifierString }) diff --git a/src/lib/query/feed.ts b/src/lib/query/feed.ts index 357c9d8..e0225c4 100644 --- a/src/lib/query/feed.ts +++ b/src/lib/query/feed.ts @@ -38,7 +38,7 @@ export async function fetchPost(uri: AtUriString) { return postCache.get(uri)!; } - console.log("Fetching post for real"); + console.log(`Pulling record from slingshot: ${uri}`) const atUri = new AtUri(uri); const record = await Slingshot.call(com.atproto.repo.getRecord, { repo: atUri.did, @@ -78,6 +78,7 @@ export async function fetchPostThread( return postThreadCache.get(ref.uri)!; } + console.log(`Pulling record from slingshot: ${ref.uri}`) const atUri = new AtUri(ref.uri); const record = await Slingshot.call(com.atproto.repo.getRecord, { repo: atUri.did,