From 55c405bb6d50e4b3eaaa2826840a3bf40d391324 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Sat, 31 Oct 2015 20:22:50 +0200 Subject: [PATCH] v4l2-ctl missing controls generate now debug logging instead of warnings --- motioneye/v4l2ctl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5