Skip to content

Commit

Permalink
validators: Better unidiff logging
Browse files Browse the repository at this point in the history
  • Loading branch information
irgolic committed Mar 24, 2023
1 parent 5a8a8ac commit bd4c43e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autopr/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def validate_with_correction(self, key, value, schema) -> Dict:
return schema

def validate(self, key: str, value: Any, schema: Union[Dict, List]) -> Dict:
log.debug(f"Validating unidiff...", key=key, value=value)
log.debug(f"Validating unidiff...", value=value)

try:
diff_service.apply_diff(value, check=True)
Expand All @@ -227,7 +227,7 @@ def validate(self, key: str, value: Any, schema: Union[Dict, List]) -> Dict:
return schema

def fix(self, error: EventDetail) -> Any:
log.debug("Fixing unidiff...", error=error)
log.debug("Fixing unidiff...", value=error.value)

tree = repo.head.commit.tree
value = error.value
Expand Down

0 comments on commit bd4c43e

Please sign in to comment.