Browse Source

perf: 修改去掉一些 debug

pull/10811/head
ibuler 1 year ago committed by 老广
parent
commit
26edd2f040
  1. 2
      apps/jumpserver/settings/logging.py
  2. 2
      apps/ops/celery/signal_handler.py

2
apps/jumpserver/settings/logging.py

@ -106,7 +106,7 @@ LOGGING = {
'propagate': False,
},
'jumpserver': {
'handlers': ['console'],
'handlers': ['console', 'file'],
'level': LOG_LEVEL,
},
'drf_exception': {

2
apps/ops/celery/signal_handler.py

@ -46,6 +46,6 @@ def add_celery_logger_handler(sender=None, logger=None, loglevel=None, format=No
return
task_handler = CeleryThreadTaskFileHandler()
task_handler.setLevel(loglevel)
formatter = logging.Formatter('abc: ' + format)
formatter = logging.Formatter(format)
task_handler.setFormatter(formatter)
logger.addHandler(task_handler)

Loading…
Cancel
Save