From 3e2bfcc61ef3ee448e297e5cf5b7514b9ae573bf Mon Sep 17 00:00:00 2001 From: Roman Isecke Date: Fri, 20 Oct 2023 12:48:23 -0400 Subject: [PATCH] Remove debugging statements --- unstructured/ingest/pipeline/source.py | 1 - unstructured/ingest/pipeline/utils.py | 1 - 2 files changed, 2 deletions(-) diff --git a/unstructured/ingest/pipeline/source.py b/unstructured/ingest/pipeline/source.py index 91ac2d609b..c10dff4115 100644 --- a/unstructured/ingest/pipeline/source.py +++ b/unstructured/ingest/pipeline/source.py @@ -17,7 +17,6 @@ def run(self, ingest_doc_dict: dict) -> t.Optional[str]: global session_handle doc = create_ingest_doc_from_dict(ingest_doc_dict) filename = doc.filename - print(f"##### Checking if {filename} exists:") if not self.read_config.re_download and filename.is_file() and filename.stat().st_size: logger.info(f"File exists: {filename}, skipping download") return filename diff --git a/unstructured/ingest/pipeline/utils.py b/unstructured/ingest/pipeline/utils.py index 4efcc7f1f6..4fc65cff0d 100644 --- a/unstructured/ingest/pipeline/utils.py +++ b/unstructured/ingest/pipeline/utils.py @@ -2,6 +2,5 @@ def get_ingest_doc_hash(json_as_dict: dict) -> str: - print(json_as_dict.keys()) hashed = hashlib.sha256(json_as_dict["filename"].encode()).hexdigest()[:32] return hashed