Skip to content

Commit f7c4763

Browse files
committed
remove: 移除 logging 拦截
1 parent 0b680d2 commit f7c4763

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

core/logger.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ def emit(self, record):
113113
)
114114

115115
# 配置拦截处理器
116-
logging.basicConfig(handlers=[InterceptHandler()], level=logging.DEBUG)
117-
logging.getLogger("uvicorn").handlers = [InterceptHandler()]
118-
logging.getLogger("uvicorn.access").handlers = [InterceptHandler()]
119-
logging.getLogger("uvicorn.error").handlers = [InterceptHandler()]
116+
#logging.basicConfig(handlers=[InterceptHandler()], level=logging.DEBUG)
117+
#logging.getLogger("uvicorn").handlers = [InterceptHandler()]
118+
#logging.getLogger("uvicorn.access").handlers = [InterceptHandler()]
119+
#logging.getLogger("uvicorn.error").handlers = [InterceptHandler()]
120120
#logging.getLogger("engineio.client").handlers = [DebugHandler()]
121121
#logging.getLogger("socketio.client").handlers = [DebugHandler()]
122122

0 commit comments

Comments
 (0)