debug11
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user