Skip to content

Commit c4602ec

Browse files
authored
Merge pull request #282 from avinxshKD/fix-logging-basicconfig-conflicts
2 parents aa1c5ca + ffb5044 commit c4602ec

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

copy_with_port_portname.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@
55
import logging
66
import json
77

8-
logging.basicConfig(
9-
level=logging.INFO,
10-
format='%(message)s',
11-
datefmt='%Y-%m-%d %H:%M:%S'
12-
)
13-
148
def run_specialization_script(template_script_path, output_dir, edge_params_list, python_exe, copy_script_path):
159
"""
1610
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
149143
sys.exit(1)
150144

151145
if __name__ == "__main__":
146+
logging.basicConfig(
147+
level=logging.INFO,
148+
format='%(message)s',
149+
datefmt='%Y-%m-%d %H:%M:%S'
150+
)
151+
152152
if len(sys.argv) != 4:
153153
print("\nUsage: python3 copy_with_port_portname.py <TEMPLATE_SCRIPT_PATH> <OUTPUT_DIRECTORY> '<JSON_PARAMETERS>'\n")
154154
print("Example JSON: '[{\"port\": \"2355\", \"port_name\": \"FUNBODY_REP_1\", \"source_node_label\": \"nodeA\", \"target_node_label\": \"nodeB\"}]'")

0 commit comments

Comments
 (0)