From 3fdbdef0003d13206595acb101795b918ba7cf0c Mon Sep 17 00:00:00 2001 From: dbarzin Date: Wed, 22 Feb 2023 22:31:31 +0100 Subject: [PATCH] logs --- pandora-box.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pandora-box.py b/pandora-box.py index 2daff13..ea926fc 100755 --- a/pandora-box.py +++ b/pandora-box.py @@ -388,11 +388,10 @@ class PandoraBox: time.sleep(0.1) status = "SKIPPED" else: + # do not scan files bigger than 1G if file_size > (1024*1024*1024): status = "TOO BIG" else: - self._log(f'-> [{full_path}]') - logging.info(f'scan=[{full_path}]') res = pandora.submit_from_disk(full_path) time.sleep(0.1) loop = 0