From ffd633108d3793f88f50cd066128113057bfb96a Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Thu, 21 Aug 2014 20:34:47 +0300 Subject: [PATCH] motion debug level is now set according to settings.LOG_LEVEL --- src/motionctl.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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') -- 2.39.5