summaryrefslogtreecommitdiff
path: root/rq/cli/cli.py
diff options
context:
space:
mode:
authorYongtao Zhang <zyt312074545@hotmail.com>2019-12-16 08:23:36 +0800
committerSelwin Ong <selwin.ong@gmail.com>2019-12-16 07:23:36 +0700
commit5bb5fda1a6a2ac35ef4902bf311b0fc5dbfd3cf5 (patch)
treeb209854e96f3ec8e0a552fb3bec64bc37b409765 /rq/cli/cli.py
parentcf501518534429640a9a6d14e022f9329225e701 (diff)
downloadrq-5bb5fda1a6a2ac35ef4902bf311b0fc5dbfd3cf5.tar.gz
fix log level parameter override, Fixes #1166 (#1167)
Diffstat (limited to 'rq/cli/cli.py')
-rwxr-xr-xrq/cli/cli.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/rq/cli/cli.py b/rq/cli/cli.py
index 635f178..fb2ab0b 100755
--- a/rq/cli/cli.py
+++ b/rq/cli/cli.py
@@ -249,6 +249,10 @@ def worker(cli_config, burst, logging_level, name, results_ttl,
from rq.contrib.sentry import register_sentry
register_sentry(sentry_dsn)
+ # if --verbose or --quiet, override --logging_level
+ if verbose or quiet:
+ logging_level = None
+
worker.work(burst=burst, logging_level=logging_level, date_format=date_format, log_format=log_format, max_jobs=max_jobs)
except ConnectionError as e:
print(e)