Skip to content

Commit

Permalink
fix: combine log lines for easier searching
Browse files Browse the repository at this point in the history
  • Loading branch information
shioju authored and Nebulis committed Jun 1, 2021
1 parent 990397e commit 4f4bf3d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/shared/validate/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ export const validateSchema = (document: any, validator: ValidateFunction): Erro
}
const valid = validator(document.version === SchemaId.v3 ? document : getData(document));
if (!valid) {
logger.debug("There are errors in the document");
logger.debug(JSON.stringify(validator.errors));
logger.debug(`There are errors in the document: ${JSON.stringify(validator.errors)}`);
return validator.errors ?? [];
}
logger.debug(`Document is a valid open attestation document v${document.version}`);
Expand Down

0 comments on commit 4f4bf3d

Please sign in to comment.