Skip to content

Commit

Permalink
Merge pull request #319 from atlanticwave-sdx/update-sdx-message
Browse files Browse the repository at this point in the history
Update SDX message when no topology is available yet
  • Loading branch information
congwang09 authored Aug 21, 2024
2 parents 305ecd8 + a1b1f61 commit 16543a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sdx_controller/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sdx_controller/handlers/connection_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 16543a6

Please sign in to comment.