Skip to content

Commit

Permalink
Try to make logs smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin committed Aug 11, 2023
1 parent 3065960 commit ba8c178
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actions/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ export const checkForAndPlaceOrder: ActionFn = async (
const ordersPendingDelete = [];
// enumerate all the `ConditionalOrder`s for a given owner
for (const conditionalOrder of conditionalOrders) {
console.log(`Checking params ${conditionalOrder.params}...`);
// FIXME: This is a useful log, but it is disabled since Tenderly shows a WARN and start to hide the logs "Logs are too large and have been remove". The effect is, that it hides the posting of the order! (so workaround is to disable)
// console.log(`Checking params ${conditionalOrder.params}...`);
const contract = ComposableCoW__factory.connect(
conditionalOrder.composableCow,
chainContext.provider
Expand Down Expand Up @@ -301,8 +302,7 @@ async function placeOrder(orderUid: string, order: any, apiUrl: string) {
};

// if the api_url doesn't contain localhost, post
console.log(`[placeOrder] Post order ${orderUid} with params:`, apiUrl);
console.log(`[placeOrder] Order:`, postData);
console.log(`[placeOrder] Post order ${orderUid}`, postData);
if (!apiUrl.includes("localhost")) {
const { status, data } = await axios.post(
`${apiUrl}/api/v1/orders`,
Expand Down

0 comments on commit ba8c178

Please sign in to comment.