From: Calin Crisan <ccrisan@gmail.com>
Date: Sat, 31 Oct 2015 18:22:50 +0000 (+0200)
Subject: v4l2-ctl missing controls generate now debug logging instead of warnings
X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=55c405bb6d50e4b3eaaa2826840a3bf40d391324;p=motioneye-debian

v4l2-ctl missing controls generate now debug logging instead of warnings
---

diff --git a/motioneye/v4l2ctl.py b/motioneye/v4l2ctl.py
index 10637f4..edf5580 100644
--- a/motioneye/v4l2ctl.py
+++ b/motioneye/v4l2ctl.py
@@ -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