perf: 修改去掉一些 debug

pull/10811/head
ibuler 1 year ago committed by 老广
parent 270ed5e2f8
commit 26edd2f040

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

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

Loading…
Cancel
Save