Skip to content

Commit aa3e0a3

Browse files
authored
fix: remove unused argument enable_log (#20)
1 parent ef3b169 commit aa3e0a3

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@ def hello(request):
6969
### `CASBIN_MODEL`
7070
A string containing the file location of your casbin model.
7171

72-
### `CASBIN_LOG_ENABLED`
73-
If `True`, enables logging. `False` by default.
74-
7572
### `CASBIN_ADAPTER`
7673
A string containing the adapter import path. Defaults to the django adapter shipped with this package: `casbin_adapter.adapter.Adapter`
7774

casbin_adapter/enforcer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ def _load(self):
2525
logger.info("Performing deferred casbin enforcer initialisation")
2626
self._initialized = True
2727
model = getattr(settings, "CASBIN_MODEL")
28-
enable_log = getattr(settings, "CASBIN_LOG_ENABLED", False)
2928
adapter_loc = getattr(settings, "CASBIN_ADAPTER", "casbin_adapter.adapter.Adapter")
3029
adapter_args = getattr(settings, "CASBIN_ADAPTER_ARGS", tuple())
3130
Adapter = import_class(adapter_loc)

0 commit comments

Comments
 (0)