diff --git a/src/opticalcontroller/OpticalController.py b/src/opticalcontroller/OpticalController.py
index de4d3ae54111c8bce077c28c1e1ab35133a945e6..c6c00fe9ac83bd66a3cafb04d7bb99f2860bbf75 100644
--- a/src/opticalcontroller/OpticalController.py
+++ b/src/opticalcontroller/OpticalController.py
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-import time
+import logging, time
 from flask import Flask
 from flask import render_template
 from flask_restplus import Resource, Api
@@ -22,6 +22,8 @@ from opticalcontroller.tools import *
 from opticalcontroller.variables import *
 from opticalcontroller.RSA import RSA
 
+logging.basicConfig(level=logging.INFO)
+LOGGER = logging.getLogger(__name__)
 
 global rsa
 global links_dict
@@ -355,6 +357,7 @@ class GetTopology(Resource):
                 print(rsa.init_link_slots2())
             return "ok", 200
         except Exception as e:
+            LOGGER.exception('Error in GetTopology')
             print(f"err {e}")
             return "Error", 400