Logging polution
Many random print
calls can be found throughout the code which pollutes the output logs at unexpected moments.
These are the ones I see when starting a lima simulator:
https://gitlab.esrf.fr/limagroup/Lima-tango-python/blob/master/LimaCCDs.py#L378
class LimaCCDs(PyTango.Device_4Impl):
def __init__(self,*args) :
PyTango.Device_4Impl.__init__(self,*args)
...
print('YO')
https://gitlab.esrf.fr/limagroup/Lima-tango-python/blob/master/LimaCCDs.py#L2604
def export_ct_control(ct_map):
...
print("Creating device {0}({1})...".format(tango_class_name, name))
util.create_device(tango_class_name, name)
print("Done")
https://gitlab.esrf.fr/limagroup/Lima-tango-python/blob/master/EnvHelper.py#L439
def create_tango_objects(ct_control, name_template):
...
print("ctcontrol.{0}() = {1}".format(ct_func_name, getattr(tango_ct_control, ct_func_name)()))
https://gitlab.esrf.fr/limagroup/Lima-tango-python/blob/master/plugins/LiveViewer.py#L122
class LiveViewer (PyTango.Device_4Impl):
def init_device(self):
...
print ("Warning: setFrameRate() not supported")
Then for a lima simulator (different project):
https://gitlab.esrf.fr/limagroup/Lima-camera-simulator/blob/stable/tango/Simulator.py#L126
class Simulator(PyTango.Device_4Impl):
def __getattr__(self,name) :
print(name)
print(type(_SimuCamera.getFrameGetter()))