From 41d8da26837b5e827df58377d256a5dcf3dd74b5 Mon Sep 17 00:00:00 2001 From: Cong Wang Date: Wed, 21 Aug 2024 11:28:06 -0400 Subject: [PATCH] Update SDX message --- sdx_controller/__init__.py | 4 ++-- sdx_controller/handlers/connection_handler.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sdx_controller/__init__.py b/sdx_controller/__init__.py index 5d088d9e..7302be51 100644 --- a/sdx_controller/__init__.py +++ b/sdx_controller/__init__.py @@ -49,9 +49,9 @@ def create_app(run_listener: bool = True): threads, which is when run_listener param might be useful. """ if LOG_FILE: - logging.basicConfig(filename=LOG_FILE, level=logging.INFO) + logging.basicConfig(filename=LOG_FILE, level=logging.DEBUG) else: - logging.basicConfig(level=logging.INFO) + logging.basicConfig(level=logging.DEBUG) app = connexion.App(__name__, specification_dir="./swagger/") app.app.json_encoder = encoder.JSONEncoder diff --git a/sdx_controller/handlers/connection_handler.py b/sdx_controller/handlers/connection_handler.py index 32fa7226..470caaac 100644 --- a/sdx_controller/handlers/connection_handler.py +++ b/sdx_controller/handlers/connection_handler.py @@ -136,7 +136,7 @@ def place_connection( graph = te_manager.generate_graph_te() if graph is None: - return "Could not generate a graph", 424 + return "No SDX topology found", 424 traffic_matrix = te_manager.generate_traffic_matrix( connection_request=connection_request