From ffb504408aa7c0beaee91ae79a9b90a3eba404f8 Mon Sep 17 00:00:00 2001 From: Avinash Kumar Deepak Date: Thu, 12 Feb 2026 14:26:23 +0530 Subject: [PATCH] use module logger in copy_with_port_portname to avoid conflict --- copy_with_port_portname.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/copy_with_port_portname.py b/copy_with_port_portname.py index 7307289..1a0a033 100644 --- a/copy_with_port_portname.py +++ b/copy_with_port_portname.py @@ -5,12 +5,6 @@ import logging import json -logging.basicConfig( - level=logging.INFO, - format='%(message)s', - datefmt='%Y-%m-%d %H:%M:%S' -) - def run_specialization_script(template_script_path, output_dir, edge_params_list, python_exe, copy_script_path): """ Calls the copy script to generate a specialized version of a node's script. @@ -149,6 +143,12 @@ def create_modified_script(template_script_path, output_dir, edge_params_json_st sys.exit(1) if __name__ == "__main__": + logging.basicConfig( + level=logging.INFO, + format='%(message)s', + datefmt='%Y-%m-%d %H:%M:%S' + ) + if len(sys.argv) != 4: print("\nUsage: python3 copy_with_port_portname.py ''\n") print("Example JSON: '[{\"port\": \"2355\", \"port_name\": \"FUNBODY_REP_1\", \"source_node_label\": \"nodeA\", \"target_node_label\": \"nodeB\"}]'")