Fixes disable-job-desc-logging flag on CLI (#1096)

PR #991 introduced this useful flag but it seems to have missed
passing this flag to the worker. This simple commit fixes that
issue.
main
janierdavila 6 years ago committed by Selwin Ong
parent 077aa7d32e
commit d191adbeb9

@ -191,7 +191,7 @@ def info(cli_config, interval, raw, only_queues, only_workers, by_queue, queues,
@click.argument('queues', nargs=-1) @click.argument('queues', nargs=-1)
@pass_cli_config @pass_cli_config
def worker(cli_config, burst, logging_level, name, results_ttl, def worker(cli_config, burst, logging_level, name, results_ttl,
worker_ttl, job_monitoring_interval, verbose, quiet, sentry_dsn, worker_ttl, job_monitoring_interval, disable_job_desc_logging, verbose, quiet, sentry_dsn,
exception_handler, pid, disable_default_exception_handler, queues, exception_handler, pid, disable_default_exception_handler, queues,
log_format, date_format, **options): log_format, date_format, **options):
"""Starts an RQ worker.""" """Starts an RQ worker."""
@ -228,7 +228,8 @@ def worker(cli_config, burst, logging_level, name, results_ttl,
job_monitoring_interval=job_monitoring_interval, job_monitoring_interval=job_monitoring_interval,
job_class=cli_config.job_class, queue_class=cli_config.queue_class, job_class=cli_config.job_class, queue_class=cli_config.queue_class,
exception_handlers=exception_handlers or None, exception_handlers=exception_handlers or None,
disable_default_exception_handler=disable_default_exception_handler disable_default_exception_handler=disable_default_exception_handler,
log_job_description=not disable_job_desc_logging
) )
# Should we configure Sentry? # Should we configure Sentry?

Loading…
Cancel
Save