Update MetadataManager.py

It fixes issue #32
parent 801ccedf
......@@ -168,9 +168,12 @@ class MetadataManager (PyTango.Device_4Impl):
self.logger.setLevel(logging.DEBUG)
self.logger.addHandler(TangoLoggingHandler(self))
if graypy != None:
self.logger.addHandler(graypy.GELFHandler('graylog-dau.esrf.fr', 12203))
self.logger.info("Init MetadataManager logging")
#l.addHandler(logging.StreamHandler())
try:
self.logger.addHandler(graypy.GELFHandler('graylog-dau.esrf.fr', 12203))
self.logger.info("Init MetadataManager logging")
except:
self.logger.addHandler(graypy.GELFUDPHandler('graylog-dau.esrf.fr', 12203))
self.logger.info("Init MetadataManager logging")
# self client
self.proxy = PyTango.DeviceProxy(self.get_name())
......
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