删除后端无用日志

- 删除所有 logger.debug 调试日志
- 删除过于详细的 logger.info 常规操作日志
- 保留 logger.error 和 logger.warn 重要错误和警告日志
- 优化日志输出,减少生产环境日志噪音
This commit is contained in:
WrBug
2025-12-02 22:22:39 +08:00
parent dffbc5124f
commit 792ddb8635
36 changed files with 2737 additions and 221 deletions
+10 -10
View File
@@ -35,7 +35,7 @@ const Layout: React.FC<LayoutProps> = ({ children }) => {
// 获取当前应该打开的父菜单
const getInitialOpenKeys = (): string[] => {
const path = location.pathname
if (path.startsWith('/templates') || path.startsWith('/copy-trading')) {
if (path.startsWith('/leaders') || path.startsWith('/templates') || path.startsWith('/copy-trading')) {
return ['/copy-trading-management']
}
return []
@@ -46,7 +46,7 @@ const Layout: React.FC<LayoutProps> = ({ children }) => {
// 当路径变化时,自动打开对应的父菜单
useEffect(() => {
const path = location.pathname
if (path.startsWith('/templates') || path.startsWith('/copy-trading')) {
if (path.startsWith('/leaders') || path.startsWith('/templates') || path.startsWith('/copy-trading')) {
setOpenKeys(['/copy-trading-management'])
}
}, [location.pathname])
@@ -57,16 +57,16 @@ const Layout: React.FC<LayoutProps> = ({ children }) => {
icon: <WalletOutlined />,
label: '账户管理'
},
{
key: '/leaders',
icon: <UserOutlined />,
label: 'Leader 管理'
},
{
key: '/copy-trading-management',
icon: <AppstoreOutlined />,
label: '跟单管理',
label: '跟单交易',
children: [
{
key: '/leaders',
icon: <UserOutlined />,
label: 'Leader 管理'
},
{
key: '/templates',
icon: <FileTextOutlined />,
@@ -118,7 +118,7 @@ const Layout: React.FC<LayoutProps> = ({ children }) => {
justifyContent: 'space-between'
}}>
<div style={{ color: '#fff', fontSize: '18px', fontWeight: 'bold' }}>
Polymarket
PolyHermes
</div>
<Button
type="text"
@@ -179,7 +179,7 @@ const Layout: React.FC<LayoutProps> = ({ children }) => {
fontWeight: 'bold',
flexShrink: 0
}}>
Polymarket
PolyHermes
</div>
<Menu
mode="inline"