add function to create log folder

This commit is contained in:
cris 2025-09-03 12:15:10 +02:00
parent 1fc7c4477e
commit c9c2c88a03
2 changed files with 6 additions and 0 deletions

View File

@ -139,6 +139,9 @@ def create_folder_and_move_logs(lab,section,agent,prompt_type,model,lab_status):
async def main():
# Create folder log if it doesn't exist
os.makedirs("logs", exist_ok=True)
#configuration to write terminal output to a file
log_file_path = "terminal_output"

View File

@ -148,6 +148,9 @@ def create_folder_and_move_logs(lab,section,agent,prompt_type,model,lab_status):
async def run(mcp_server: MCPServer):
# Create folder log if it doesn't exist
os.makedirs("logs", exist_ok=True)
#configuration to write terminal output to a file
log_file_path = "terminal_output"
log_name_prefix = f"{SECTION}.{AGENT}.{PROMPT_TYPE}"