mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 09:51:22 -06:00
Removing logfile variable
This commit is contained in:
parent
2b154dcfdf
commit
97ea15e978
@ -146,15 +146,14 @@ AUTH_LDAP_CACHE_TIMEOUT = 3600
|
|||||||
For troubleshooting LDAP user/group queries, add or merge the following [logging](/configuration/optional-settings.md#logging) configuration to `configuration.py`:
|
For troubleshooting LDAP user/group queries, add or merge the following [logging](/configuration/optional-settings.md#logging) configuration to `configuration.py`:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
logfile = "/opt/netbox/logs/django-ldap-debug.log"
|
|
||||||
LOGGING = {
|
LOGGING = {
|
||||||
"version": 1,
|
'version': 1,
|
||||||
"disable_existing_loggers": False,
|
'disable_existing_loggers': False,
|
||||||
"handlers": {
|
'handlers': {
|
||||||
'netbox_auth_log': {
|
'netbox_auth_log': {
|
||||||
'level': 'DEBUG',
|
'level': 'DEBUG',
|
||||||
'class': 'logging.handlers.RotatingFileHandler',
|
'class': 'logging.handlers.RotatingFileHandler',
|
||||||
'filename': logfile,
|
'filename': '/opt/netbox/logs/django-ldap-debug.log',
|
||||||
'maxBytes': 1024 * 500,
|
'maxBytes': 1024 * 500,
|
||||||
'backupCount': 5,
|
'backupCount': 5,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user