diff --git a/src/services/trackingPlan.ts b/src/services/trackingPlan.ts index ea0502c7d4..81021db4ba 100644 --- a/src/services/trackingPlan.ts +++ b/src/services/trackingPlan.ts @@ -32,7 +32,17 @@ export class TrackingPlanservice { error: JSON.stringify(constructValidationErrors(validatedEvent['validationErrors'])), }; } catch (error) { - logger.debug(`Error occurred while validating: ${error}`); + logger.debug( + `Error occurred while validating event`, + 'event', + event?.eventName, + 'tp', + event?.trackingPlanId, + 'tpVersion', + event?.trackingPlanVersion, + 'error', + error, + ); exceptionOccured = true; // no need to process further if