Skip to content

Commit

Permalink
feat: update log
Browse files Browse the repository at this point in the history
  • Loading branch information
nofir committed Jan 22, 2025
1 parent d1b5914 commit ad1d8d1
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/jobs/seaport-sync/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,20 @@ export const fetchOrders = async (

try {
const response = await axios.request(options);

logger.warn(
"fetch_orders_seaport",
JSON.stringify(
{
message: `Seaport - Debug. useProxy=${useProxy}, side=${side}, cursor=${cursor}, url=${options.url}, nextCursor=${response.data.next}`,
openseaApiUrl: config.openseaApiUrl,
openseaNftApiKey: config.openseaNftApiKey,
options,
useProxy,
}
)
);

cursor = response.data.next;

const orders: SeaportOrder[] = response.data.orders;
Expand Down Expand Up @@ -159,7 +173,7 @@ export const fetchOrders = async (
"fetch_orders_seaport",
JSON.stringify(
{
message: `Seaport - Rate Limited. useProxy=${useProxy}, side=${side}, cursor=${cursor}, url=${config.openseaApiUrl || url}, error=${error.message}`,
message: `Seaport - Rate Limited. useProxy=${useProxy}, side=${side}, cursor=${cursor}, url=${options.url}, error=${error.message}`,
openseaApiUrl: config.openseaApiUrl,
openseaNftApiKey: config.openseaNftApiKey,
options,
Expand Down

0 comments on commit ad1d8d1

Please sign in to comment.