Fix a bug in Accessory.cpp cause the condition of the light not fully known.
Deactivate logging function