From f47de938120b3e7add04758f039f4db14c71f988 Mon Sep 17 00:00:00 2001 From: Dev PC Date: Tue, 5 Aug 2025 13:14:11 +0300 Subject: [PATCH] debug11 --- call_handler.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/call_handler.py b/call_handler.py index ee52560..2476cda 100644 --- a/call_handler.py +++ b/call_handler.py @@ -350,6 +350,9 @@ class CallHandler: directory = f"/var/spool/asterisk/monitor/{datetime.now().year}/{datetime.now().month}/{datetime.now().day}" tree = {} + if config.DEBUG: + logging.info(f"Scanning directory: {directory}") + logging.info(f"Client: {client}") for root, _, files in os.walk(directory): for file in files: if ( @@ -357,6 +360,8 @@ class CallHandler: and file.startswith("external") and client in file ): + if config.DEBUG: + logging.info(f"Found file: {file}") file_path = os.path.join(root, file) try: file_duration = get_wav_duration(file_path)