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)