Skip to content
Snippets Groups Projects
Commit 66d41a57 authored by Benjamin Becker's avatar Benjamin Becker
Browse files

adds debug messages to _raise_validation_error_if_hash_values_differ

parent 982c0e4c
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,8 @@ def _raise_validation_error_if_hash_values_differ(upload_file, resource):
if hash_from_resource:
hash_from_calculation = calculate_hash(upload_file)
if not hash_from_calculation == hash_from_resource:
log.debug('hash from calculation: {}'.format(hash_from_calculation))
log.debug('hash from resource: {}'.format(hash_from_resource))
raise logic.ValidationError({'upload': ['Berechneter Hash und mitgelieferter Hash sind unterschiedlich']})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment