Skip to content

Commit

Permalink
fix: remove unused argument enable_log (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
BustDot authored Jul 29, 2023
1 parent ef3b169 commit aa3e0a3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ def hello(request):
### `CASBIN_MODEL`
A string containing the file location of your casbin model.

### `CASBIN_LOG_ENABLED`
If `True`, enables logging. `False` by default.

### `CASBIN_ADAPTER`
A string containing the adapter import path. Defaults to the django adapter shipped with this package: `casbin_adapter.adapter.Adapter`

Expand Down
1 change: 0 additions & 1 deletion casbin_adapter/enforcer.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ def _load(self):
logger.info("Performing deferred casbin enforcer initialisation")
self._initialized = True
model = getattr(settings, "CASBIN_MODEL")
enable_log = getattr(settings, "CASBIN_LOG_ENABLED", False)
adapter_loc = getattr(settings, "CASBIN_ADAPTER", "casbin_adapter.adapter.Adapter")
adapter_args = getattr(settings, "CASBIN_ADAPTER_ARGS", tuple())
Adapter = import_class(adapter_loc)
Expand Down

0 comments on commit aa3e0a3

Please sign in to comment.