Commit 2459db07 authored by mancini's avatar mancini

Add Log exception

parent 0464aad6
......@@ -3,6 +3,8 @@ import argparse
from time import sleep
from lib.opc_interface import define_get_crosslet_statistics_parameters, setup_server_metadata, register_namespace,\
define_rcu_object
# ----------------------------------MAIN CODE LOGIC
def setup_logging():
"""
......@@ -47,8 +49,8 @@ def main():
server.start()
while True:
sleep(1)
except:
pass
except Exception as e:
logging.exception(e)
finally:
# close connection, remove subcsriptions, etc
server.stop()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment