Skip to content

Commit

Permalink
better list logging
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerFisher committed Dec 31, 2024
1 parent dbe2d2f commit c3918da
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ jobs:
echo "SESSION_SECRET=${{ secrets.SESSION_SECRET }}" >> .env
echo "TRAEFIK_DASHBOARD_AUTH=${{ secrets.TRAEFIK_DASHBOARD_AUTH }}" >> .env
echo "CRON_API_KEY=${{ secrets.CRON_API_KEY }}" >> .env
echo "UPDATE_BATCH_SIZE=${{ secrets.UPDATE_BATCH_SIZE }}" >> .env
- name: Copy .env and docker-compose-prod files to remote server
uses: appleboy/scp-action@master
Expand Down
14 changes: 11 additions & 3 deletions app/utils/bluesky.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ export const getBlueskyList = async (
}
return listTimeline;
} catch (error) {
console.error("Error fetching Bluesky list", error);
console.error(
`Error fetching Bluesky list ${dbList.name}, ${dbList.uri} for ${accountHandle}`,
error,
);
return [];
}
};
Expand Down Expand Up @@ -199,7 +202,10 @@ export const getBlueskyTimeline = async (
}
return timeline;
} catch (error) {
console.error("Error fetching Bluesky timeline", error);
console.error(
`Error fetching Bluesky timeline for ${account.handle}`,
error,
);
return [];
}
};
Expand Down Expand Up @@ -483,7 +489,9 @@ export const getLinksFromBluesky = async (
setTimeout(
() =>
reject(
new Error(`List timeout: ${list.name} for ${account.handle}`),
new Error(
`List timeout: ${list.name}, ${list.uri} for ${account.handle}`,
),
),
25000,
),
Expand Down

0 comments on commit c3918da

Please sign in to comment.