Better logging of Nevow Server import in case of exception. nevow_service_rework
authorEdouard Tisserant
Thu, 05 Jul 2018 13:44:54 +0200
branchnevow_service_rework
changeset 2213 73b7034693b9
parent 2212 cf1718962567
child 2214 b9cdbcc992d5
Better logging of Nevow Server import in case of exception.
Beremiz_service.py
--- a/Beremiz_service.py	Thu Jul 05 11:11:01 2018 +0200
+++ b/Beremiz_service.py	Thu Jul 05 13:44:54 2018 +0200
@@ -588,7 +588,7 @@
         try:
             import runtime.NevowServer as NS  # pylint: disable=ungrouped-imports
         except Exception, e:
-            print(_("Nevow/Athena import failed :"), e)
+            LogMessageAndException(_("Nevow/Athena import failed :"))
             webport = None
         NS.WorkingDir = WorkingDir