atlanticwave-sdx / sdx-controller

Central Controller for AtlanticWave SDX.
https://www.atlanticwave-sdx.net
MIT License
1 stars 3 forks source link

Increase logging on connection breakdown creation to help find the problem #305

Closed italovalcy closed 1 month ago

italovalcy commented 1 month ago

Hi,

While using SDX-Controller, one of the requests returned Internal Server Error (HTTP error 500) and the logs only include:

sdx-controller  | WARNING:sdx_pce.topology.temanager:Port urn:sdx:port:ampath.net:Ampath3:50 not found in port map, it's a user port
sdx-controller  | INFO:sdx_controller.controllers.connection_controller:place_connection result: ID: 4a44b7d5-3bd9-4bf3-96ea-7fd008233283 reason='Error: string indices must be integers', code=400
sdx-controller  | INFO:     192.168.0.1:55452 - "POST /SDX-Controller/1.0.0/connection HTTP/1.1" 400 Bad Request

It would be nice to have more logging information to help troubleshooting.