Browse Source

delete: ansible log in logging.py

pull/14202/head
Bai 2 months ago committed by Bryan
parent
commit
b53968ac00
  1. 13
      apps/jumpserver/settings/logging.py

13
apps/jumpserver/settings/logging.py

@ -8,7 +8,6 @@ LOG_DIR = os.path.join(PROJECT_DIR, 'data', 'logs')
JUMPSERVER_LOG_FILE = os.path.join(LOG_DIR, 'jumpserver.log') JUMPSERVER_LOG_FILE = os.path.join(LOG_DIR, 'jumpserver.log')
DRF_EXCEPTION_LOG_FILE = os.path.join(LOG_DIR, 'drf_exception.log') DRF_EXCEPTION_LOG_FILE = os.path.join(LOG_DIR, 'drf_exception.log')
UNEXPECTED_EXCEPTION_LOG_FILE = os.path.join(LOG_DIR, 'unexpected_exception.log') UNEXPECTED_EXCEPTION_LOG_FILE = os.path.join(LOG_DIR, 'unexpected_exception.log')
ANSIBLE_LOG_FILE = os.path.join(LOG_DIR, 'ansible.log')
GUNICORN_LOG_FILE = os.path.join(LOG_DIR, 'gunicorn.log') GUNICORN_LOG_FILE = os.path.join(LOG_DIR, 'gunicorn.log')
LOG_LEVEL = CONFIG.LOG_LEVEL LOG_LEVEL = CONFIG.LOG_LEVEL
@ -55,14 +54,6 @@ LOGGING = {
'formatter': 'main', 'formatter': 'main',
'filename': JUMPSERVER_LOG_FILE, 'filename': JUMPSERVER_LOG_FILE,
}, },
'ansible_logs': {
'encoding': 'utf8',
'level': 'DEBUG',
'class': 'jumpserver.rewriting.logging.DailyTimedRotatingFileHandler',
'when': 'midnight',
'formatter': 'main',
'filename': ANSIBLE_LOG_FILE,
},
'drf_exception': { 'drf_exception': {
'encoding': 'utf8', 'encoding': 'utf8',
'level': 'DEBUG', 'level': 'DEBUG',
@ -113,10 +104,6 @@ LOGGING = {
'handlers': ['unexpected_exception'], 'handlers': ['unexpected_exception'],
'level': LOG_LEVEL, 'level': LOG_LEVEL,
}, },
'ops.ansible_api': {
'handlers': ['console', 'ansible_logs'],
'level': LOG_LEVEL,
},
'django_auth_ldap': { 'django_auth_ldap': {
'handlers': ['console', 'file'], 'handlers': ['console', 'file'],
'level': "INFO", 'level': "INFO",

Loading…
Cancel
Save