From: Calin Crisan Date: Thu, 21 Aug 2014 17:34:47 +0000 (+0300) Subject: motion debug level is now set according to settings.LOG_LEVEL X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=ffd633108d3793f88f50cd066128113057bfb96a;p=motioneye-debian motion debug level is now set according to settings.LOG_LEVEL --- diff --git a/src/motionctl.py b/src/motionctl.py index 16a3def..f29e23b 100644 --- a/src/motionctl.py +++ b/src/motionctl.py @@ -71,7 +71,14 @@ def start(): args = [program, '-c', motion_config_path, - '-n'] + '-n', + '-d'] + + if settings.LOG_LEVEL == logging.DEBUG: + args.append('9') + + else: + args.append('1') log_file = open(motion_log_path, 'w')