Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The legacy_config.py prints the UserWarning even the new config name is provided #394

Open
ironmanl opened this issue Jul 28, 2021 · 0 comments

Comments

@ironmanl
Copy link

The legacy_config.py prints the UserWarning even the new configuration name is provided. I can not remove the old names (Eg. REDIS_HOST) in the config as they have been used by another library.

The warning should be stopped if both "REDIS_HOST" and "RQ_DASHBOARD_REDIS_HOST" are provided, and it should not replace the "RQ_DASHBOARD_REDIS_HOST" with the value of the old config name.

| /opt/venv/lib/python3.6/site-packages/rq_dashboard/legacy_config.py:26: UserWarning: Configuration option REDIS_HOST is depricated and will be removed in future versions. Please use RQ_DASHBOARD_REDIS_HOST instead. | warnings.warn(warning_template.format(old_name=old_name, new_name=new_name), UserWarning) | /opt/venv/lib/python3.6/site-packages/rq_dashboard/legacy_config.py:26: UserWarning: Configuration option REDIS_PORT is depricated and will be removed in future versions. Please use RQ_DASHBOARD_REDIS_PORT instead. | warnings.warn(warning_template.format(old_name=old_name, new_name=new_name), UserWarning) | /opt/venv/lib/python3.6/site-packages/rq_dashboard/legacy_config.py:26: UserWarning: Configuration option REDIS_PASSWORD is depricated and will be removed in future versions. Please use RQ_DASHBOARD_REDIS_PASSWORD instead. | warnings.warn(warning_template.format(old_name=old_name, new_name=new_name), UserWarning) | /opt/venv/lib/python3.6/site-packages/rq_dashboard/legacy_config.py:26: UserWarning: Configuration option REDIS_DB is depricated and will be removed in future versions. Please use RQ_DASHBOARD_REDIS_DB instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant