From b2e6406fb63e50981c2867c65aed123e05b19a8b Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 29 Nov 2024 17:23:44 +0100 Subject: [PATCH] drop loggers --- dpp/api_dlt.py | 2 +- dpp/views.py | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/dpp/api_dlt.py b/dpp/api_dlt.py index 61032c9..5360eea 100644 --- a/dpp/api_dlt.py +++ b/dpp/api_dlt.py @@ -80,10 +80,10 @@ def save_proof(signature, ev_uuid, result, proof_type, user): if result['Status'] == STATUS_CODE.get("Success"): timestamp = result.get('Data', {}).get('data', {}).get('timestamp') - logger.error("timestamp: %s", timestamp) if not timestamp: return + logger.debug("timestamp: %s", timestamp) d = { "type": proof_type, "timestamp": timestamp, diff --git a/dpp/views.py b/dpp/views.py index a05382d..13753c2 100644 --- a/dpp/views.py +++ b/dpp/views.py @@ -10,8 +10,6 @@ from evidence.models import Evidence from evidence.parse import Build from dpp.models import Proof -logger = logging.getLogger('django') - class ProofView(View): @@ -21,9 +19,6 @@ class ProofView(View): if not proof: return JsonResponse({}, status=404) - logger.error(proof.type) - logger.error(proof.signature) - ev = Evidence(proof.uuid) if not ev.doc: return JsonResponse({}, status=404) @@ -31,10 +26,6 @@ class ProofView(View): dev = Build(ev.doc, None, check=True) doc = dev.get_phid() - logger.error(doc) - hs = hashlib.sha3_256(json.dumps(doc).encode()).hexdigest() - logger.error(hs) - data = { "algorithm": ALGORITHM, "document": json.dumps(doc)