-
Notifications
You must be signed in to change notification settings - Fork 410
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
Dynamic cross-instance register/unregister #586
Comments
Please check my comment on a related issue. probably it would be useful. |
Thanks @hramezani. Yes, your proposal might be the way for our environment. Let's wait for implementation, review and release. |
@hramezani, looks nice, thank you. |
Hello,
we are developing and running a Django app
In this setup, we would like to get users the ability to enable and disable audit-logging.
Question: Is this possible? I do not think so. But I will be more than happy if somebody will provide instructions on how to achieve our goals.
The reason why it is not possible in my opinion: To enable/disable audit-logging for each model, it is necessary to call
auditlog.register(Model_Name)
/auditlog.unregister(Model_Name)
and this call has only local effect. So change will happen only on the instance which processes the user's request and it won't be propagated to other Django and Celery instances.Because of this, if we would like to stay scalable, we are forced to change the setting via environment variables before each instance is started.
Am I right or is there some way, to dynamically enable/disable audit-logging?
The text was updated successfully, but these errors were encountered: