]> www.vanbest.org Git - motioneye-debian/commitdiff
v4l2-ctl missing controls generate now debug logging instead of warnings
authorCalin Crisan <ccrisan@gmail.com>
Sat, 31 Oct 2015 18:22:50 +0000 (20:22 +0200)
committerCalin Crisan <ccrisan@gmail.com>
Sat, 31 Oct 2015 18:22:50 +0000 (20:22 +0200)
motioneye/v4l2ctl.py

index 10637f48e7e3924316af4cc51f8561845186b2d4..edf5580a5d521c38824fc7424fec2888c7718655 100644 (file)
@@ -263,7 +263,7 @@ def _get_ctrl(device, control):
     controls = _list_ctrls(device)
     properties = controls.get(control)
     if properties is None:
-        logging.warn('control %(control)s not found for device %(device)s' % {
+        logging.debug('control %(control)s not found for device %(device)s' % {
                 'control': control, 'device': device})
         
         return None
@@ -298,7 +298,7 @@ def _set_ctrl(device, control, value):
     controls = _list_ctrls(device)
     properties = controls.get(control)
     if properties is None:
-        logging.warn('control %(control)s not found for device %(device)s' % {
+        logging.debug('control %(control)s not found for device %(device)s' % {
                 'control': control, 'device': device})
         
         return