diff --git a/src/domain/polling/index.ts b/src/domain/polling/index.ts index 961c53d..1f6cef0 100644 --- a/src/domain/polling/index.ts +++ b/src/domain/polling/index.ts @@ -201,12 +201,15 @@ export async function checkForAndPlaceOrder( (isError && pollResult.reason ? `. Reason: ${pollResult.reason}` : ""); log[unexpectedError ? "error" : "info"]( - `Check conditional order result: ${getEmojiByPollResult( - pollResult?.result - )} ${resultDescription}` + `Check conditional order result for ${ + conditionalOrder.id + }: ${getEmojiByPollResult(pollResult?.result)} ${resultDescription}` ); if (unexpectedError) { - log.error(`UNEXPECTED_ERROR Details:`, pollResult.error); + log.error( + `UNEXPECTED_ERROR for order ${conditionalOrder.id}. Details:`, + pollResult.error + ); } hasErrors ||= unexpectedError; @@ -217,7 +220,9 @@ export async function checkForAndPlaceOrder( const deleted = conditionalOrders.delete(conditionalOrder); const action = deleted ? "Stop Watching" : "Failed to stop watching"; - log.debug(`${action} conditional order from TX ${conditionalOrder.tx}`); + log.debug( + `${action} conditional order ${conditionalOrder.id} from TX ${conditionalOrder.tx}` + ); metrics.activeOrdersTotal.labels(chainId.toString()).dec(); } }